[PATCH] ieee1394.c on - compilation errors

Grzegorz Jaskiewicz (gj@pointblue.com.pl)
30 Apr 2003 23:59:54 +0100


This is a MIME-formatted message. If you see this text it means that your
E-mail software does not support MIME-formatted messages.

--=_courier-28708-1051743574-0001-2
Content-Type: text/plain; charset=iso-8859-1
Content-Transfer-Encoding: 7bit

Hello there!

Another trivial, monkeys job patch.

Anyway, it is good to look at some changes and learn :)

1) dev->class_num does not exists anymore

-- 
Grzegorz Jaskiewicz <gj@pointblue.com.pl>
K4 labs

--=_courier-28708-1051743574-0001-2 Content-Type: text/x-patch; charset=iso-8859-2 Content-Transfer-Encoding: 7bit Content-Description: Content-Disposition: inline; filename=ieee1394.patch

diff -u -r org/drivers/ieee1394/nodemgr.c popsuty/drivers/ieee1394/nodemgr.c --- org/drivers/ieee1394/nodemgr.c 2003-04-30 22:22:39.000000000 +0100 +++ popsuty/drivers/ieee1394/nodemgr.c 2003-04-30 23:41:52.000000000 +0100 @@ -364,9 +364,6 @@ struct unit_directory *ud; struct ieee1394_device_id *id; - if (dev->class_num != DEV_CLASS_UNIT_DIRECTORY) - return 0; - ud = container_of(dev, struct unit_directory, device); driver = container_of(drv, struct hpsb_protocol_driver, driver); @@ -494,18 +491,15 @@ static struct device nodemgr_dev_template_ud = { .bus = &ieee1394_bus_type, .release = nodemgr_release_ud, - .class_num = DEV_CLASS_UNIT_DIRECTORY, }; static struct device nodemgr_dev_template_ne = { .bus = &ieee1394_bus_type, .release = nodemgr_release_ne, - .class_num = DEV_CLASS_NODE, }; static struct device nodemgr_dev_template_host = { .bus = &ieee1394_bus_type, - .class_num = DEV_CLASS_HOST, }; @@ -727,9 +721,6 @@ struct guid_search_baton *search = __data; struct node_entry *ne; - if (dev->class_num != DEV_CLASS_NODE) - return 0; - ne = container_of(dev, struct node_entry, device); if (ne->guid == search->guid) { @@ -764,9 +755,6 @@ struct nodeid_search_baton *search = __data; struct node_entry *ne; - if (dev->class_num != DEV_CLASS_NODE) - return 0; - ne = container_of(dev, struct node_entry, device); if (ne->host == search->host && ne->nodeid == search->nodeid) { @@ -1131,9 +1119,6 @@ if (!dev) return -ENODEV; - if (dev->class_num != DEV_CLASS_UNIT_DIRECTORY) - return -ENODEV; - ud = container_of(dev, struct unit_directory, device); scratch = buffer; @@ -1258,9 +1243,6 @@ struct node_entry *ne = __data; struct unit_directory *ud; - if (dev->class_num != DEV_CLASS_UNIT_DIRECTORY) - return 0; - ud = container_of(dev, struct unit_directory, device); if (&ne->device != ud->device.parent) @@ -1446,9 +1428,6 @@ struct cleanup_baton *cleanup = __data; struct node_entry *ne; - if (dev->class_num != DEV_CLASS_NODE) - return 0; - ne = container_of(dev, struct node_entry, device); if (ne->host != cleanup->host)

--=_courier-28708-1051743574-0001-2--