]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit1e1744fa03fcf46ce0a01f2ae2e199a8ee36878a
tree317f74d203f852960916734a2c25b02fcc21b843
parent711a9cf3e8d9fc7ae21bb21978704a56e70ba6c0
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