From: Haavard Skinnemoen Date: Thu, 31 Jan 2008 12:10:22 +0000 (+0100) Subject: macb: Fix section mismatch and shrink runtime footprint X-Git-Tag: v2.6.25-rc1~1065^2~61 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=06c3fd6ad546f7e6e996ca1fc2cddd9c7aee8176;p=pandora-kernel.git macb: Fix section mismatch and shrink runtime footprint macb devices are only found integrated on SoCs, so they can't be hotplugged. Thus, the probe() and exit() functions can be __init and __exit, respectively. By using platform_driver_probe() instead of platform_driver_register(), there won't be any references to the discarded probe() function after the driver has loaded. This also fixes a section mismatch due to macb_probe(), defined as __devinit, calling macb_get_hwaddr, defined as __init. Signed-off-by: Haavard Skinnemoen Signed-off-by: Jeff Garzik Signed-off-by: David S. Miller --- Reading git-diff-tree failed