diff options
| author | Uwe Kleine-König <[email protected]> | 2009-09-22 16:44:26 -0700 |
|---|---|---|
| committer | Linus Torvalds <[email protected]> | 2009-09-23 07:39:33 -0700 |
| commit | f400cd8c84ba51e0ef3d9b680fe9f45ab54c792c (patch) | |
| tree | 81ba11ed234569ec723b59fe42f5e0c08e304ac7 /include/linux | |
| parent | b5a74d6058e86546868242bb5283e16fb10fd90a (diff) | |
mmc: register mmci-omap-hs using platform_driver_probe
omap_mmc_probe lives in .init.text, so using platform_driver_register to
register it is wrong because binding a device after the init memory is
discarded (e.g. via sysfs) results in an oops.
As requested by David Brownell platform_driver_probe is used instead of
moving the probe function to .devinit.text as proposed initially. This
saves some memory, but devices registered after the driver is probed are
not bound (probably there are none) and binding via sysfs isn't possible.
Signed-off-by: Uwe Kleine-König <[email protected]>
Cc: Jean Pihet <[email protected]>
Cc: Tony Lindgren <[email protected]>
Cc: Pierre Ossman <[email protected]>
Cc: Andy Lowe <[email protected]>
Cc: Adrian Hunter <[email protected]>
Cc: Andrew Morton <[email protected]>
Acked-by: David Brownell <[email protected]>
Cc: Madhusudhan Chikkature<[email protected]>
Cc: Greg Kroah-Hartman <[email protected]>
Cc: Matt Fleming <[email protected]>
Cc: Ian Molton <[email protected]>
Cc: "Roberto A. Foglietta" <[email protected]>
Cc: Philip Langdale <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
Diffstat (limited to 'include/linux')
0 files changed, 0 insertions, 0 deletions