Skip to contentSkip to conversation

Subject: [PATCH] w1: mxc_w1: move probe and remove to the dev* text area.

PATCH Alberto Panizzo 2 participants 2 messages Feb 15, 2010

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

This fixes the section mismatch warning for mxc_w1_probe()
---

This patch apply to linus 2.6.33-rc8 tree.
I think that could be marked for stable releases.

 drivers/w1/masters/mxc_w1.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
drivers/w1/masters/mxc_w1.c +2 -2
index 65244c0..4926703 100644
@@ -102,7 +102,7 @@ static u8 mxc_w1_ds2_touch_bit(void *data, u8 bit)
 	return ((__raw_readb(ctrl_addr)) >> 3) & 0x1;
 }
 
-static int __init mxc_w1_probe(struct platform_device *pdev)
+static int __devinit mxc_w1_probe(struct platform_device *pdev)
 {
 	struct mxc_w1_device *mdev;
 	struct resource *res;
@@ -166,7 +166,7 @@ failed_clk:
 /*
  * disassociate the w1 device from the driver
  */
-static int mxc_w1_remove(struct platform_device *pdev)
+static int __devexit mxc_w1_remove(struct platform_device *pdev)
 {
 	struct mxc_w1_device *mdev = platform_get_drvdata(pdev);
 	struct resource *res;
Signature · 1 line
1.6.3.3
#1 lore raw

Hello Albert,

Quoted 1 line · Alberto Panizzo

This fixes the section mismatch warning for mxc_w1_probe()

Quoted 4 lines

---

This patch apply to linus 2.6.33-rc8 tree.
I think that could be marked for stable releases.

hmmm, if you'd know how much effort I spend to get patches like these in ... Obviously letting modpost warn about those helps me getting supporters :-)

Best regards
Uwe

Signature · 2 lines
Pengutronix e.K.                           | Uwe Kleine-König            |
Industrial Linux Solutions                 | http://www.pengutronix.de/  |