From: Grzegorz Jaskiewicz <gj@pointblue.com.pl>
To: lkml <linux-kernel@vger.kernel.org>
Cc: Linus <torvalds@transmeta.com>
Subject: [PATCH] ieee1394.c on - compilation errors
Date: 30 Apr 2003 23:59:54 +0100 [thread overview]
Message-ID: <1051743594.5267.7.camel@flat41> (raw)
[-- Attachment #1: Type: text/plain, Size: 207 bytes --]
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
[-- Attachment #2: Type: text/x-patch, Size: 2203 bytes --]
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)
next reply other threads:[~2003-04-30 22:46 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-04-30 22:59 Grzegorz Jaskiewicz [this message]
2003-04-30 22:43 ` [PATCH] ieee1394.c on - compilation errors Ben Collins
2003-04-30 23:13 ` Grzegorz Jaskiewicz
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1051743594.5267.7.camel@flat41 \
--to=gj@pointblue.com.pl \
--cc=linux-kernel@vger.kernel.org \
--cc=torvalds@transmeta.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.