diff options
Diffstat (limited to 'drivers/usb/gadget/printer.c')
-rw-r--r-- | drivers/usb/gadget/printer.c | 18 |
1 files changed, 16 insertions, 2 deletions
diff --git a/drivers/usb/gadget/printer.c b/drivers/usb/gadget/printer.c index e0090085b78e..2b3b9e1dd2ee 100644 --- a/drivers/usb/gadget/printer.c +++ b/drivers/usb/gadget/printer.c | |||
@@ -53,6 +53,20 @@ | |||
53 | 53 | ||
54 | #include "gadget_chips.h" | 54 | #include "gadget_chips.h" |
55 | 55 | ||
56 | |||
57 | /* | ||
58 | * Kbuild is not very cooperative with respect to linking separately | ||
59 | * compiled library objects into one module. So for now we won't use | ||
60 | * separate compilation ... ensuring init/exit sections work to shrink | ||
61 | * the runtime footprint, and giving us at least some parts of what | ||
62 | * a "gcc --combine ... part1.c part2.c part3.c ... " build would. | ||
63 | */ | ||
64 | #include "usbstring.c" | ||
65 | #include "config.c" | ||
66 | #include "epautoconf.c" | ||
67 | |||
68 | /*-------------------------------------------------------------------------*/ | ||
69 | |||
56 | #define DRIVER_DESC "Printer Gadget" | 70 | #define DRIVER_DESC "Printer Gadget" |
57 | #define DRIVER_VERSION "2007 OCT 06" | 71 | #define DRIVER_VERSION "2007 OCT 06" |
58 | 72 | ||
@@ -1360,8 +1374,8 @@ printer_bind(struct usb_gadget *gadget) | |||
1360 | 1374 | ||
1361 | 1375 | ||
1362 | /* Setup the sysfs files for the printer gadget. */ | 1376 | /* Setup the sysfs files for the printer gadget. */ |
1363 | dev->pdev = device_create_drvdata(usb_gadget_class, NULL, | 1377 | dev->pdev = device_create(usb_gadget_class, NULL, g_printer_devno, |
1364 | g_printer_devno, NULL, "g_printer"); | 1378 | NULL, "g_printer"); |
1365 | if (IS_ERR(dev->pdev)) { | 1379 | if (IS_ERR(dev->pdev)) { |
1366 | ERROR(dev, "Failed to create device: g_printer\n"); | 1380 | ERROR(dev, "Failed to create device: g_printer\n"); |
1367 | goto fail; | 1381 | goto fail; |