[PATCH] s390: use klist in qeth driver

From: Martin Schwidesky <schwidefsky@de.ibm.com>

Convert qeth to the new klist interface and make it compiling again.

Signed-off-by: Frank Pavlic <pavlic@de.ibm.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
This commit is contained in:
Cornelia Huck
2005-08-08 09:22:36 -07:00
committed by Linus Torvalds
parent 8b83bc77bf
commit 66aea23ff8
2 changed files with 82 additions and 68 deletions

View File

@@ -8119,21 +8119,23 @@ static struct notifier_block qeth_ip6_notifier = {
};
#endif
static int
__qeth_reboot_event_card(struct device *dev, void *data)
{
struct qeth_card *card;
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)
{
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);
driver_for_each_device(&qeth_ccwgroup_driver.driver, NULL, NULL,
__qeth_reboot_event_card);
return NOTIFY_DONE;
}