aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/atmdev.h
diff options
context:
space:
mode:
authorKay Sievers <kay.sievers@vrfy.org>2007-12-31 02:16:06 -0500
committerDavid S. Miller <davem@davemloft.net>2008-01-28 18:00:12 -0500
commitef39592f786b6d56d9faf988a3f18786eeb050b3 (patch)
tree10d8db1fe862dbfdd290b87b1a09bae11a96d4fd /include/linux/atmdev.h
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/linux/atmdev.h')
-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 2096e5c72827..a3d07c29d16c 100644
--- a/include/linux/atmdev.h
+++ b/include/linux/atmdev.h
@@ -359,7 +359,7 @@ struct atm_dev {
359 struct proc_dir_entry *proc_entry; /* proc entry */ 359 struct proc_dir_entry *proc_entry; /* proc entry */
360 char *proc_name; /* proc entry name */ 360 char *proc_name; /* proc entry name */
361#endif 361#endif
362 struct class_device class_dev; /* sysfs class device */ 362 struct device class_dev; /* sysfs device */
363 struct list_head dev_list; /* linkage */ 363 struct list_head dev_list; /* linkage */
364}; 364};
365 365
@@ -461,7 +461,7 @@ static inline void atm_dev_put(struct atm_dev *dev)
461 BUG_ON(!test_bit(ATM_DF_REMOVED, &dev->flags)); 461 BUG_ON(!test_bit(ATM_DF_REMOVED, &dev->flags));
462 if (dev->ops->dev_close) 462 if (dev->ops->dev_close)
463 dev->ops->dev_close(dev); 463 dev->ops->dev_close(dev);
464 class_device_put(&dev->class_dev); 464 put_device(&dev->class_dev);
465 } 465 }
466} 466}
467 467