447d8c2603
A pointer to am79c961_probe is passed to the core via platform_driver_register and so the function must not disappear when the .init sections are discarded. Otherwise (if also having HOTPLUG=y) unbinding and binding a device to the driver via sysfs will result in an oops as does a device being registered late. An alternative to this patch is using platform_driver_probe instead of platform_driver_register plus removing the pointer to the probe function from the struct platform_driver. Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de> Signed-off-by: David S. Miller <davem@davemloft.net> |
||
---|---|---|
.. | ||
Kconfig | ||
Makefile | ||
am79c961a.c | ||
am79c961a.h | ||
at91_ether.c | ||
at91_ether.h | ||
ep93xx_eth.c | ||
ether1.c | ||
ether1.h | ||
ether3.c | ||
ether3.h | ||
etherh.c | ||
ixp4xx_eth.c | ||
ks8695net.c | ||
ks8695net.h | ||
w90p910_ether.c |