* [PATCH] C2port:remove the wrong and never used macros in c2port.h
@ 2011-05-05 15:07 Wanlong Gao
0 siblings, 0 replies; only message in thread
From: Wanlong Gao @ 2011-05-05 15:07 UTC (permalink / raw)
To: linux-kernel; +Cc: giometti, akpm, Wanlong Gao
From: Wanlong Gao <wanlong.gao@gmail.com>
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.
Signed-off-by: Wanlong Gao <wanlong.gao@gmail.com>
---
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 2a5cd86..a2f7d74 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);
--
1.7.4.1
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2011-05-05 15:07 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-05-05 15:07 [PATCH] C2port:remove the wrong and never used macros in c2port.h Wanlong Gao
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®