diff options
author | Roman Kagan <rkagan@mail.ru> | 2006-06-29 12:36:34 -0700 |
---|---|---|
committer | David S. Miller <davem@sunset.davemloft.net> | 2006-06-29 16:58:19 -0700 |
commit | 656d98b09d57d4e1185c5d2436a42600d48fbcb5 (patch) | |
tree | 42c8795ea142e6c0a002bcdb26d255e2b8693e4c /include/linux/atmdev.h | |
parent | d17f086550a6fdb13fe82371d60ebf80904c6f96 (diff) | |
download | kernel_samsung_espresso10-656d98b09d57d4e1185c5d2436a42600d48fbcb5.zip kernel_samsung_espresso10-656d98b09d57d4e1185c5d2436a42600d48fbcb5.tar.gz kernel_samsung_espresso10-656d98b09d57d4e1185c5d2436a42600d48fbcb5.tar.bz2 |
[ATM]: basic sysfs support for ATM devices
Signed-off-by: Chas Williams <chas@cmf.nrl.navy.mil>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/linux/atmdev.h')
-rw-r--r-- | include/linux/atmdev.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/include/linux/atmdev.h b/include/linux/atmdev.h index 1eb238a..41788a3 100644 --- a/include/linux/atmdev.h +++ b/include/linux/atmdev.h @@ -7,6 +7,7 @@ #define LINUX_ATMDEV_H +#include <linux/device.h> #include <linux/atmapi.h> #include <linux/atm.h> #include <linux/atmioc.h> @@ -358,6 +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 list_head dev_list; /* linkage */ }; @@ -459,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); - kfree(dev); + class_device_put(&dev->class_dev); } } |