aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorKay Sievers <kay.sievers@vrfy.org>2007-12-30 23:16:06 -0800
committerDavid S. Miller <davem@davemloft.net>2008-01-28 15:00:12 -0800
commitef39592f786b6d56d9faf988a3f18786eeb050b3 (patch)
tree10d8db1fe862dbfdd290b87b1a09bae11a96d4fd /include
parent6fe5452b3bb53e5bf5f37590b280ee73dc1e61b6 (diff)
[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>
Diffstat (limited to 'include')
-rw-r--r--include/linux/atmdev.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/linux/atmdev.h b/include/linux/atmdev.h
index 2096e5c7282..a3d07c29d16 100644
--- a/include/linux/atmdev.h
+++ b/include/linux/atmdev.h
@@ -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);
}
}