LKML Archive on lore.kernel.org
help / color / mirror / Atom feed
* [PATCH] smc91x: add __init markings to smc_drv_probe()
@ 2008-11-01  8:11 Mike Frysinger
  0 siblings, 0 replies; only message in thread
From: Mike Frysinger @ 2008-11-01  8:11 UTC (permalink / raw)
  To: nico, netdev; +Cc: linux-kernel

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(-)

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;
-- 
1.6.0.2


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2008-11-01  8:11 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-11-01  8:11 [PATCH] smc91x: add __init markings to smc_drv_probe() Mike Frysinger

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).