From: Uwe Kleine-König Date: Tue, 21 Jul 2009 10:11:39 +0000 (+0000) Subject: register at91_ether using platform_driver_probe X-Git-Tag: v2.6.31-rc5~83^2~16 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=78a9c9c97455d0f8d2d2098b2252eb4bf65be799;p=pandora-kernel.git register at91_ether using platform_driver_probe at91ether_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 Acked-by: David Brownell Acked-by: Andrew Victor Signed-off-by: David S. Miller --- Reading git-diff-tree failed