diff options
Diffstat (limited to 'drivers/ieee1394/hosts.c')
-rw-r--r-- | drivers/ieee1394/hosts.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/drivers/ieee1394/hosts.c b/drivers/ieee1394/hosts.c index bd0755c789c5..7ea64eec2270 100644 --- a/drivers/ieee1394/hosts.c +++ b/drivers/ieee1394/hosts.c | |||
@@ -156,13 +156,13 @@ struct hpsb_host *hpsb_alloc_host(struct hpsb_host_driver *drv, size_t extra, | |||
156 | h->device.parent = dev; | 156 | h->device.parent = dev; |
157 | snprintf(h->device.bus_id, BUS_ID_SIZE, "fw-host%d", h->id); | 157 | snprintf(h->device.bus_id, BUS_ID_SIZE, "fw-host%d", h->id); |
158 | 158 | ||
159 | h->class_dev.dev = &h->device; | 159 | h->host_dev.parent = &h->device; |
160 | h->class_dev.class = &hpsb_host_class; | 160 | h->host_dev.class = &hpsb_host_class; |
161 | snprintf(h->class_dev.class_id, BUS_ID_SIZE, "fw-host%d", h->id); | 161 | snprintf(h->host_dev.bus_id, BUS_ID_SIZE, "fw-host%d", h->id); |
162 | 162 | ||
163 | if (device_register(&h->device)) | 163 | if (device_register(&h->device)) |
164 | goto fail; | 164 | goto fail; |
165 | if (class_device_register(&h->class_dev)) { | 165 | if (device_register(&h->host_dev)) { |
166 | device_unregister(&h->device); | 166 | device_unregister(&h->device); |
167 | goto fail; | 167 | goto fail; |
168 | } | 168 | } |
@@ -202,7 +202,7 @@ void hpsb_remove_host(struct hpsb_host *host) | |||
202 | host->driver = &dummy_driver; | 202 | host->driver = &dummy_driver; |
203 | highlevel_remove_host(host); | 203 | highlevel_remove_host(host); |
204 | 204 | ||
205 | class_device_unregister(&host->class_dev); | 205 | device_unregister(&host->host_dev); |
206 | device_unregister(&host->device); | 206 | device_unregister(&host->device); |
207 | } | 207 | } |
208 | 208 | ||