Skip to contentSkip to conversation

C2port:remove the wrong and never used macros in c2port.h

PATCH New Wanlong Gao 1 participant 1 message May 5, 2011

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 C2port:remove the wrong and never used macros in c2port.h

From: Wanlong Gao <[email protected]>

The macro to_class_dev used the deprecated structure class_device, and the c2port_device has no member named class in the definition of the macro to_c2port_device.

---
 include/linux/c2port.h |    3 ---
 1 files changed, 0 insertions(+), 3 deletions(-)
include/linux/c2port.h +0 -3
index 2a5cd86..a2f7d74 100644
@@ -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);
Signature · 1 line
1.7.4.1