From: Mike Frysinger Date: Fri, 31 Oct 2008 22:11:06 +0000 (+0000) Subject: smc91x: add __init markings to smc_drv_probe() X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=237f3e1d80bb9d4c6eaf684552f422568ba04ffe;p=GitHub%2Fmt8127%2Fandroid_kernel_alcatel_ttab.git smc91x: add __init markings to smc_drv_probe() The smc_drv_probe() is the platform_driver probe function and it is only called during init. Further, it calls smc_probe() which is marked as __init already. Signed-off-by: Mike Frysinger Signed-off-by: Jeff Garzik --- diff --git a/drivers/net/smc91x.c b/drivers/net/smc91x.c index 2d8bfa7bd9e9..b5ff63268d89 100644 --- a/drivers/net/smc91x.c +++ b/drivers/net/smc91x.c @@ -2123,7 +2123,7 @@ static void smc_release_datacs(struct platform_device *pdev, struct net_device * * 0 --> there is a device * anything else, error */ -static int smc_drv_probe(struct platform_device *pdev) +static int __init smc_drv_probe(struct platform_device *pdev) { struct smc91x_platdata *pd = pdev->dev.platform_data; struct smc_local *lp;