diff options
author | James Bottomley <jejb@titanic.(none)> | 2005-08-09 16:20:49 -0500 |
---|---|---|
committer | James Bottomley <jejb@titanic.(none)> | 2005-08-09 16:20:49 -0500 |
commit | 471417c9cfb4c2574e2c03bf2273fe12f5388a8e (patch) | |
tree | ac026ba976bc253fc87a5cdec8f33d24d03e1c9c /drivers/s390/net/qeth_main.c | |
parent | 20e007b8cc1266ff78810457d6e26c35c6b810ba (diff) | |
parent | db29e85a7ece62de1899917c1ec0ffe55cf1d3a0 (diff) |
Merge ../linux-2.6
Diffstat (limited to 'drivers/s390/net/qeth_main.c')
-rw-r--r-- | drivers/s390/net/qeth_main.c | 24 |
1 files changed, 13 insertions, 11 deletions
diff --git a/drivers/s390/net/qeth_main.c b/drivers/s390/net/qeth_main.c index 8f4d2999af8..79c74f3a11f 100644 --- a/drivers/s390/net/qeth_main.c +++ b/drivers/s390/net/qeth_main.c @@ -8120,20 +8120,22 @@ static struct notifier_block qeth_ip6_notifier = { #endif static int -qeth_reboot_event(struct notifier_block *this, unsigned long event, void *ptr) +__qeth_reboot_event_card(struct device *dev, void *data) { - - struct device *entry; struct qeth_card *card; - down_read(&qeth_ccwgroup_driver.driver.bus->subsys.rwsem); - list_for_each_entry(entry, &qeth_ccwgroup_driver.driver.devices, - driver_list) { - card = (struct qeth_card *) entry->driver_data; - qeth_clear_ip_list(card, 0, 0); - qeth_qdio_clear_card(card, 0); - } - up_read(&qeth_ccwgroup_driver.driver.bus->subsys.rwsem); + card = (struct qeth_card *) dev->driver_data; + qeth_clear_ip_list(card, 0, 0); + qeth_qdio_clear_card(card, 0); + return 0; +} + +static int +qeth_reboot_event(struct notifier_block *this, unsigned long event, void *ptr) +{ + + driver_for_each_device(&qeth_ccwgroup_driver.driver, NULL, NULL, + __qeth_reboot_event_card); return NOTIFY_DONE; } |