diff options
| author | Linus Torvalds <torvalds@linux-foundation.org> | 2008-10-16 15:40:26 -0400 |
|---|---|---|
| committer | Linus Torvalds <torvalds@linux-foundation.org> | 2008-10-16 15:40:26 -0400 |
| commit | c813b4e16ead3c3df98ac84419d4df2adf33fe01 (patch) | |
| tree | 2ca4a5b6966d833b6149e3dda7a4e85d1255779c /drivers/usb/gadget/ether.c | |
| parent | c8d8a2321f9c4ee18fbcc399fdc2a77e580a03b9 (diff) | |
| parent | 02683ffdf655b4ae15245376ba6fea6d9e5829a6 (diff) | |
Merge git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/driver-core-2.6
* git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/driver-core-2.6: (46 commits)
UIO: Fix mapping of logical and virtual memory
UIO: add automata sercos3 pci card support
UIO: Change driver name of uio_pdrv
UIO: Add alignment warnings for uio-mem
Driver core: add bus_sort_breadthfirst() function
NET: convert the phy_device file to use bus_find_device_by_name
kobject: Cleanup kobject_rename and !CONFIG_SYSFS
kobject: Fix kobject_rename and !CONFIG_SYSFS
sysfs: Make dir and name args to sysfs_notify() const
platform: add new device registration helper
sysfs: use ilookup5() instead of ilookup5_nowait()
PNP: create device attributes via default device attributes
Driver core: make bus_find_device_by_name() more robust
usb: turn dev_warn+WARN_ON combos into dev_WARN
debug: use dev_WARN() rather than WARN_ON() in device_pm_add()
debug: Introduce a dev_WARN() function
sysfs: fix deadlock
device model: Do a quickcheck for driver binding before doing an expensive check
Driver core: Fix cleanup in device_create_vargs().
Driver core: Clarify device cleanup.
...
Diffstat (limited to 'drivers/usb/gadget/ether.c')
| -rw-r--r-- | drivers/usb/gadget/ether.c | 28 |
1 files changed, 26 insertions, 2 deletions
diff --git a/drivers/usb/gadget/ether.c b/drivers/usb/gadget/ether.c index bcac2e68660..944c8e889ab 100644 --- a/drivers/usb/gadget/ether.c +++ b/drivers/usb/gadget/ether.c | |||
| @@ -96,6 +96,28 @@ static inline bool has_rndis(void) | |||
| 96 | 96 | ||
| 97 | /*-------------------------------------------------------------------------*/ | 97 | /*-------------------------------------------------------------------------*/ |
| 98 | 98 | ||
| 99 | /* | ||
| 100 | * Kbuild is not very cooperative with respect to linking separately | ||
| 101 | * compiled library objects into one module. So for now we won't use | ||
| 102 | * separate compilation ... ensuring init/exit sections work to shrink | ||
| 103 | * the runtime footprint, and giving us at least some parts of what | ||
| 104 | * a "gcc --combine ... part1.c part2.c part3.c ... " build would. | ||
| 105 | */ | ||
| 106 | #include "composite.c" | ||
| 107 | #include "usbstring.c" | ||
| 108 | #include "config.c" | ||
| 109 | #include "epautoconf.c" | ||
| 110 | |||
| 111 | #include "f_ecm.c" | ||
| 112 | #include "f_subset.c" | ||
| 113 | #ifdef CONFIG_USB_ETH_RNDIS | ||
| 114 | #include "f_rndis.c" | ||
| 115 | #include "rndis.c" | ||
| 116 | #endif | ||
| 117 | #include "u_ether.c" | ||
| 118 | |||
| 119 | /*-------------------------------------------------------------------------*/ | ||
| 120 | |||
| 99 | /* DO NOT REUSE THESE IDs with a protocol-incompatible driver!! Ever!! | 121 | /* DO NOT REUSE THESE IDs with a protocol-incompatible driver!! Ever!! |
| 100 | * Instead: allocate your own, using normal USB-IF procedures. | 122 | * Instead: allocate your own, using normal USB-IF procedures. |
| 101 | */ | 123 | */ |
| @@ -293,7 +315,8 @@ static int __init eth_bind(struct usb_composite_dev *cdev) | |||
| 293 | * but if the controller isn't recognized at all then | 315 | * but if the controller isn't recognized at all then |
| 294 | * that assumption is a bit more likely to be wrong. | 316 | * that assumption is a bit more likely to be wrong. |
| 295 | */ | 317 | */ |
| 296 | WARNING(cdev, "controller '%s' not recognized; trying %s\n", | 318 | dev_warn(&gadget->dev, |
| 319 | "controller '%s' not recognized; trying %s\n", | ||
| 297 | gadget->name, | 320 | gadget->name, |
| 298 | eth_config_driver.label); | 321 | eth_config_driver.label); |
| 299 | device_desc.bcdDevice = | 322 | device_desc.bcdDevice = |
| @@ -332,7 +355,8 @@ static int __init eth_bind(struct usb_composite_dev *cdev) | |||
| 332 | if (status < 0) | 355 | if (status < 0) |
| 333 | goto fail; | 356 | goto fail; |
| 334 | 357 | ||
| 335 | INFO(cdev, "%s, version: " DRIVER_VERSION "\n", DRIVER_DESC); | 358 | dev_info(&gadget->dev, "%s, version: " DRIVER_VERSION "\n", |
| 359 | DRIVER_DESC); | ||
| 336 | 360 | ||
| 337 | return 0; | 361 | return 0; |
| 338 | 362 | ||
