Skip to content

Commit

Permalink
include/linux/c2port.h: remove wrong and never used macros
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Wanlong Gao authored and Linus Torvalds committed May 25, 2011
1 parent 0ac1ee0 commit 21b7d81
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions include/linux/c2port.h
Original file line number Diff line number Diff line change
Expand Up @@ -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);

0 comments on commit 21b7d81

Please sign in to comment.