aboutsummaryrefslogtreecommitdiff
path: root/drivers/net/mac8390.c
diff options
context:
space:
mode:
authorHaavard Skinnemoen <hskinnemoen@atmel.com>2008-01-31 13:10:22 +0100
committerDavid S. Miller <davem@davemloft.net>2008-02-03 04:26:00 -0800
commit06c3fd6ad546f7e6e996ca1fc2cddd9c7aee8176 (patch)
tree317f74d203f852960916734a2c25b02fcc21b843 /drivers/net/mac8390.c
parente87ceea13e84a0748487ed0f9ccbfbc646966339 (diff)
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>
Diffstat (limited to 'drivers/net/mac8390.c')
0 files changed, 0 insertions, 0 deletions