diff options
author | Haavard Skinnemoen <hskinnemoen@atmel.com> | 2008-01-31 07:10:22 -0500 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2008-02-03 07:26:00 -0500 |
commit | 06c3fd6ad546f7e6e996ca1fc2cddd9c7aee8176 (patch) | |
tree | 317f74d203f852960916734a2c25b02fcc21b843 /drivers/net/bonding | |
parent | e87ceea13e84a0748487ed0f9ccbfbc646966339 (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/bonding')
0 files changed, 0 insertions, 0 deletions