* [PATCH] 2.6.19-rc2-mm1: make net2280 compile without CONFIG_USB_GADGET_DEBUG_FILES
@ 2006-10-19 15:31 Bernhard Rosenkraenzer
0 siblings, 0 replies; only message in thread
From: Bernhard Rosenkraenzer @ 2006-10-19 15:31 UTC (permalink / raw)
To: linux-kernel
If CONFIG_USB_GADGET_DEBUG_FILES is disabled, net2280 #defines
device_create_file(a,b) to do {} while (0).
Later on, it does result = device_create_file(.....)
Signed-off-by: Bernhard Rosenkraenzer <bero@arklinux.org>
--- linux-2.6.18/drivers/usb/gadget/net2280.c.ark 2006-10-19
16:38:59.000000000 +0200
+++ linux-2.6.18/drivers/usb/gadget/net2280.c 2006-10-19 17:18:36.000000000
+0200
@@ -1774,7 +1774,7 @@
#else
-#define device_create_file(a,b) do {} while (0)
+#define device_create_file(a,b) 0
#define device_remove_file device_create_file
#endif
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2006-10-19 15:31 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-10-19 15:31 [PATCH] 2.6.19-rc2-mm1: make net2280 compile without CONFIG_USB_GADGET_DEBUG_FILES Bernhard Rosenkraenzer
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox