macb: Fix section mismatch and shrink runtime footprint
authorHaavard Skinnemoen <hskinnemoen@atmel.com>
Thu, 31 Jan 2008 12:10:22 +0000 (13:10 +0100)
committerDavid S. Miller <davem@davemloft.net>
Sun, 3 Feb 2008 12:26:00 +0000 (04:26 -0800)
commit06c3fd6ad546f7e6e996ca1fc2cddd9c7aee8176
tree317f74d203f852960916734a2c25b02fcc21b843
parente87ceea13e84a0748487ed0f9ccbfbc646966339
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 <hskinnemoen@atmel.com>
Signed-off-by: Jeff Garzik <jeff@garzik.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/macb.c