Patchwork smc91x: add __init markings to smc_drv_probe()

login
register
mail settings
Submitter Mike Frysinger
Date Nov. 1, 2008, 8:11 a.m.
Message ID <1225527066-28985-1-git-send-email-vapier@gentoo.org>
Download mbox | patch
Permalink /patch/6773/
State Accepted
Delegated to: Jeff Garzik
Headers show

Comments

Mike Frysinger - Nov. 1, 2008, 8:11 a.m.
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 <vapier@gentoo.org>
---
 drivers/net/smc91x.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

Patch

diff --git a/drivers/net/smc91x.c b/drivers/net/smc91x.c
index c70870e..c1a0653 100644
--- a/drivers/net/smc91x.c
+++ b/drivers/net/smc91x.c
@@ -2126,7 +2126,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;