mirror of
https://github.com/Fishwaldo/linux-bl808.git
synced 2025-06-17 20:25:19 +00:00
[ATM]: Convert struct class_device to struct device
Signed-off-by: Kay Sievers <kay.sievers@vrfy.org> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de> Signed-off-by: Chas Williams <chas@cmf.nrl.navy.mil>
This commit is contained in:
parent
6fe5452b3b
commit
ef39592f78
2 changed files with 37 additions and 31 deletions
|
@ -359,7 +359,7 @@ struct atm_dev {
|
|||
struct proc_dir_entry *proc_entry; /* proc entry */
|
||||
char *proc_name; /* proc entry name */
|
||||
#endif
|
||||
struct class_device class_dev; /* sysfs class device */
|
||||
struct device class_dev; /* sysfs device */
|
||||
struct list_head dev_list; /* linkage */
|
||||
};
|
||||
|
||||
|
@ -461,7 +461,7 @@ static inline void atm_dev_put(struct atm_dev *dev)
|
|||
BUG_ON(!test_bit(ATM_DF_REMOVED, &dev->flags));
|
||||
if (dev->ops->dev_close)
|
||||
dev->ops->dev_close(dev);
|
||||
class_device_put(&dev->class_dev);
|
||||
put_device(&dev->class_dev);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue