[PATCH] Use platform_driver_probe for pdc platform driver

Previous thread: [Regression] Seagate STT20000A no longer works in 2.6.26 by Mark de Wever on Sunday, September 21, 2008 - 2:17 pm. (1 message)

Next thread: [PATCH] [ARM] ep93xx: add ethernet support for edb9302 by Thadeu Lima de Souza Cascardo on Sunday, September 21, 2008 - 3:00 pm. (2 messages)
From: Uwe Kleine-König
Date: Sunday, September 21, 2008 - 2:52 pm

The probe function of the pio platform driver lives in the init section
and so a pio device that is created after the init section is discarded
probably results in an oops.  Even if this cannot happen, using
platform_driver_probe is cleaner.  (If this can happen and should be
supported the probe function must live in the devinit section instead.)

Signed-off-by: Uwe Kleine-K
From: Uwe Kleine-König
Date: Sunday, September 21, 2008 - 2:52 pm

The probe function of the pdc platform driver lives in the init section
and so a pdc device that is created after the init section is discarded
probably results in an oops.  Even if this cannot happen, using
platform_driver_probe is cleaner.  (If this can happen and should be
supported the probe function must live in the devinit section instead.)

Signed-off-by: Uwe Kleine-K
From: Haavard Skinnemoen
Date: Monday, September 22, 2008 - 1:30 am

Applied both this and the pio one. Thanks!

Haavard
--

Previous thread: [Regression] Seagate STT20000A no longer works in 2.6.26 by Mark de Wever on Sunday, September 21, 2008 - 2:17 pm. (1 message)

Next thread: [PATCH] [ARM] ep93xx: add ethernet support for edb9302 by Thadeu Lima de Souza Cascardo on Sunday, September 21, 2008 - 3:00 pm. (2 messages)