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

From: Bernhard Rosenkraenzer
Date: Thu Oct 19 2006 - 11:32:05 EST


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

--- 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
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/