2006-10-19 15:31:47

by Bernhard Rosenkraenzer

[permalink] [raw]
Subject: [PATCH] 2.6.19-rc2-mm1: make net2280 compile without CONFIG_USB_GADGET_DEBUG_FILES

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 <[email protected]>

--- 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