Commit 8193fa33 authored by Ben Collins's avatar Ben Collins

IEEE1394/ohci(r1179): Remove ohci->id. It was just the same as host->id anyway.

parent bb7f4552
...@@ -1227,15 +1227,15 @@ static void amdtp_add_host(struct hpsb_host *host) ...@@ -1227,15 +1227,15 @@ static void amdtp_add_host(struct hpsb_host *host)
ah->host = host; ah->host = host;
ah->ohci = host->hostdata; ah->ohci = host->hostdata;
hpsb_set_hostinfo_key(&amdtp_highlevel, host, ah->ohci->id); hpsb_set_hostinfo_key(&amdtp_highlevel, host, ah->host->id);
minor = IEEE1394_MINOR_BLOCK_AMDTP * 16 + ah->ohci->id; minor = IEEE1394_MINOR_BLOCK_AMDTP * 16 + ah->host->id;
INIT_LIST_HEAD(&ah->stream_list); INIT_LIST_HEAD(&ah->stream_list);
spin_lock_init(&ah->stream_list_lock); spin_lock_init(&ah->stream_list_lock);
devfs_mk_cdev(MKDEV(IEEE1394_MAJOR, minor), devfs_mk_cdev(MKDEV(IEEE1394_MAJOR, minor),
S_IFCHR|S_IRUSR|S_IWUSR, "amdtp/%d", ah->ohci->id); S_IFCHR|S_IRUSR|S_IWUSR, "amdtp/%d", ah->host->id);
} }
static void amdtp_remove_host(struct hpsb_host *host) static void amdtp_remove_host(struct hpsb_host *host)
...@@ -1243,7 +1243,7 @@ static void amdtp_remove_host(struct hpsb_host *host) ...@@ -1243,7 +1243,7 @@ static void amdtp_remove_host(struct hpsb_host *host)
struct amdtp_host *ah = hpsb_get_hostinfo(&amdtp_highlevel, host); struct amdtp_host *ah = hpsb_get_hostinfo(&amdtp_highlevel, host);
if (ah) if (ah)
devfs_remove("amdtp/%d", ah->ohci->id); devfs_remove("amdtp/%d", ah->host->id);
return; return;
} }
......
This diff is collapsed.
...@@ -149,8 +149,6 @@ struct ohci1394_iso_tasklet { ...@@ -149,8 +149,6 @@ struct ohci1394_iso_tasklet {
}; };
struct ti_ohci { struct ti_ohci {
int id; /* sequential card number */
struct pci_dev *dev; struct pci_dev *dev;
enum { enum {
......
This diff is collapsed.
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment