lkml.org 
[lkml]   [2018]   [Dec]   [9]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    From
    Date
    Subject[PATCH 3.16 043/328] mtd: rawnand: mxc: remove __init qualifier from mxcnd_probe_dt
    3.16.62-rc1 review patch.  If anyone has any objections, please let me know.

    ------------------

    From: Martin Kaiser <martin@kaiser.cx>

    commit 24f0ae995deb728076e3ea93fea1949a9775debf upstream.

    Using the sysfs unbind, bind nodes, mxcnd_probe and mxcnd_probe_dt can
    potentially be called at any time. After the __init functions are cleaned,
    mxcnd_probe_dt is no longer available. Calling it anyway causes a crash.

    mxcnd_probe used to be marked as __init, this was removed years ago.
    Remove the __init qualifier from from mxcnd_probe_dt as well.

    Fixes: 06f255106923 ("mtd: remove use of __devinit")
    Signed-off-by: Martin Kaiser <martin@kaiser.cx>
    Reviewed-by: Boris Brezillon <boris.brezillon@bootlin.com>
    Signed-off-by: Miquel Raynal <miquel.raynal@bootlin.com>
    [bwh: Backported to 3.16: adjust filename]
    Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
    ---
    drivers/mtd/nand/mxc_nand.c | 4 ++--
    1 file changed, 2 insertions(+), 2 deletions(-)

    --- a/drivers/mtd/nand/mxc_nand.c
    +++ b/drivers/mtd/nand/mxc_nand.c
    @@ -1360,7 +1360,7 @@ static const struct of_device_id mxcnd_d
    { /* sentinel */ }
    };

    -static int __init mxcnd_probe_dt(struct mxc_nand_host *host)
    +static int mxcnd_probe_dt(struct mxc_nand_host *host)
    {
    struct device_node *np = host->dev->of_node;
    struct mxc_nand_platform_data *pdata = &host->pdata;
    @@ -1387,7 +1387,7 @@ static int __init mxcnd_probe_dt(struct
    return 0;
    }
    #else
    -static int __init mxcnd_probe_dt(struct mxc_nand_host *host)
    +static int mxcnd_probe_dt(struct mxc_nand_host *host)
    {
    return 1;
    }
    \
     
     \ /
      Last update: 2018-12-09 23:18    [W:4.165 / U:0.044 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site