diff options
author | Wanlong Gao <wanlong.gao@gmail.com> | 2011-05-25 04:13:06 +0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2011-05-25 19:39:43 +0400 |
commit | 21b7d815b2cc380929181e1a4a7129e8b569e574 (patch) | |
tree | 8034db0a62cdbf44e143ac7fbae6cf0adc415853 /include/linux/c2port.h | |
parent | 0ac1ee0bfec2a4ad118f907ce586d0dfd8db7641 (diff) | |
download | linux-21b7d815b2cc380929181e1a4a7129e8b569e574.tar.xz |
include/linux/c2port.h: remove wrong and never used macros
The macro to_class_dev() uses the deprecated structure class_device, and
the c2port_device has no member named class in the definition of the macro
to_c2port_device.
Signed-off-by: Wanlong Gao <wanlong.gao@gmail.com>
Cc: Rodolfo Giometti <giometti@linux.it>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'include/linux/c2port.h')
-rw-r--r-- | include/linux/c2port.h | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/include/linux/c2port.h b/include/linux/c2port.h index 2a5cd867c365..a2f7d7413f30 100644 --- a/include/linux/c2port.h +++ b/include/linux/c2port.h @@ -60,9 +60,6 @@ struct c2port_ops { * Exported functions */ -#define to_class_dev(obj) container_of((obj), struct class_device, kobj) -#define to_c2port_device(obj) container_of((obj), struct c2port_device, class) - extern struct c2port_device *c2port_device_register(char *name, struct c2port_ops *ops, void *devdata); extern void c2port_device_unregister(struct c2port_device *dev); |