diff options
Diffstat (limited to 'include/linux')
| -rw-r--r-- | include/linux/usb.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/include/linux/usb.h b/include/linux/usb.h index 735735d663d6..b5eec5fc1d09 100644 --- a/include/linux/usb.h +++ b/include/linux/usb.h @@ -207,8 +207,10 @@ struct usb_bus { struct dentry *usbfs_dentry; /* usbfs dentry entry for the bus */ struct dentry *usbdevfs_dentry; /* usbdevfs dentry entry for the bus */ - atomic_t refcnt; + struct class_device class_dev; /* class device for this bus */ + void (*release)(struct usb_bus *bus); /* function to destroy this bus's memory */ }; +#define to_usb_bus(d) container_of(d, struct usb_bus, class_dev) /* -------------------------------------------------------------------------- */ |
