Netdev List
 help / color / mirror / Atom feed
* [PATCH] mdio-gpio: inline mdio_gpio_bus_deinit to avoid section issues
@ 2009-10-15  7:01 Mike Frysinger
  0 siblings, 0 replies; only message in thread
From: Mike Frysinger @ 2009-10-15  7:01 UTC (permalink / raw)
  To: netdev, David S. Miller; +Cc: Paulius Zaleckas, Roel Kluin, linux-kernel

The mdio_gpio_bus_deinit() code is called from the probe/remove functions
which accordingly have __devinit/__devexit markings.  Rather than simply
remove its section marking, inline the code so that it can be freed as
needed by each function.

Signed-off-by: Mike Frysinger <vapier@gentoo.org>
---
 drivers/net/phy/mdio-gpio.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/drivers/net/phy/mdio-gpio.c b/drivers/net/phy/mdio-gpio.c
index 22cdd45..a280224 100644
--- a/drivers/net/phy/mdio-gpio.c
+++ b/drivers/net/phy/mdio-gpio.c
@@ -139,7 +139,7 @@ out:
 	return NULL;
 }
 
-static void __devinit mdio_gpio_bus_deinit(struct device *dev)
+static inline void mdio_gpio_bus_deinit(struct device *dev)
 {
 	struct mii_bus *bus = dev_get_drvdata(dev);
 	struct mdio_gpio_info *bitbang = bus->priv;
-- 
1.6.5

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

only message in thread, other threads:[~2009-10-15  7:01 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-10-15  7:01 [PATCH] mdio-gpio: inline mdio_gpio_bus_deinit to avoid section issues Mike Frysinger

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox