diff options
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 1eb238affb12..2096e5c72827 100644 --- a/include/linux/atmdev.h +++ b/include/linux/atmdev.h | |||
| @@ -209,6 +209,7 @@ struct atm_cirange { | |||
| 209 | 209 | ||
| 210 | #ifdef __KERNEL__ | 210 | #ifdef __KERNEL__ |
| 211 | 211 | ||
| 212 | #include <linux/device.h> | ||
| 212 | #include <linux/wait.h> /* wait_queue_head_t */ | 213 | #include <linux/wait.h> /* wait_queue_head_t */ |
| 213 | #include <linux/time.h> /* struct timeval */ | 214 | #include <linux/time.h> /* struct timeval */ |
| 214 | #include <linux/net.h> | 215 | #include <linux/net.h> |
| @@ -358,6 +359,7 @@ struct atm_dev { | |||
| 358 | struct proc_dir_entry *proc_entry; /* proc entry */ | 359 | struct proc_dir_entry *proc_entry; /* proc entry */ |
| 359 | char *proc_name; /* proc entry name */ | 360 | char *proc_name; /* proc entry name */ |
| 360 | #endif | 361 | #endif |
| 362 | struct class_device class_dev; /* sysfs class device */ | ||
| 361 | struct list_head dev_list; /* linkage */ | 363 | struct list_head dev_list; /* linkage */ |
| 362 | }; | 364 | }; |
| 363 | 365 | ||
| @@ -459,7 +461,7 @@ static inline void atm_dev_put(struct atm_dev *dev) | |||
| 459 | BUG_ON(!test_bit(ATM_DF_REMOVED, &dev->flags)); | 461 | BUG_ON(!test_bit(ATM_DF_REMOVED, &dev->flags)); |
| 460 | if (dev->ops->dev_close) | 462 | if (dev->ops->dev_close) |
| 461 | dev->ops->dev_close(dev); | 463 | dev->ops->dev_close(dev); |
| 462 | kfree(dev); | 464 | class_device_put(&dev->class_dev); |
| 463 | } | 465 | } |
| 464 | } | 466 | } |
| 465 | 467 | ||
