9
0
Fork 0

net fec_mpc5200: disable fec on shutdown

Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
This commit is contained in:
Sascha Hauer 2011-09-27 12:03:25 +02:00
parent 0e811d11a6
commit 7d593c7765
1 changed files with 8 additions and 0 deletions

View File

@ -697,9 +697,17 @@ int mpc5xxx_fec_probe(struct device_d *dev)
return 0;
}
static void mpc5xxx_fec_remove(struct device_d *dev)
{
struct eth_device *edev = dev->type_data;
mpc5xxx_fec_halt(edev);
}
static struct driver_d mpc5xxx_driver = {
.name = "fec_mpc5xxx",
.probe = mpc5xxx_fec_probe,
.remove = mpc5xxx_fec_remove,
};
static int mpc5xxx_fec_register(void)