diff options
| author | Linus Torvalds <torvalds@linux-foundation.org> | 2008-04-21 18:49:58 -0400 |
|---|---|---|
| committer | Linus Torvalds <torvalds@linux-foundation.org> | 2008-04-21 18:49:58 -0400 |
| commit | e80ab411e589e00550e2e6e5a6a02d59cc730357 (patch) | |
| tree | 870225ff7b5b8d03e82a996963213a4bb9cce248 /drivers/base/dd.c | |
| parent | 529a41e36673b518c9e091f3a8d932b6b9e3c461 (diff) | |
| parent | ee959b00c335d7780136c5abda37809191fe52c3 (diff) | |
Merge git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/driver-2.6
* git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/driver-2.6: (36 commits)
SCSI: convert struct class_device to struct device
DRM: remove unused dev_class
IB: rename "dev" to "srp_dev" in srp_host structure
IB: convert struct class_device to struct device
memstick: convert struct class_device to struct device
driver core: replace remaining __FUNCTION__ occurrences
sysfs: refill attribute buffer when reading from offset 0
PM: Remove destroy_suspended_device()
Firmware: add iSCSI iBFT Support
PM: Remove legacy PM (fix)
Kobject: Replace list_for_each() with list_for_each_entry().
SYSFS: Explicitly include required header file slab.h.
Driver core: make device_is_registered() work for class devices
PM: Convert wakeup flag accessors to inline functions
PM: Make wakeup flags available whenever CONFIG_PM is set
PM: Fix misuse of wakeup flag accessors in serial core
Driver core: Call device_pm_add() after bus_add_device() in device_add()
PM: Handle device registrations during suspend/resume
block: send disk "change" event for rescan_partitions()
sysdev: detect multiple driver registrations
...
Fixed trivial conflict in include/linux/memory.h due to semaphore header
file change (made irrelevant by the change to mutex).
Diffstat (limited to 'drivers/base/dd.c')
| -rw-r--r-- | drivers/base/dd.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/drivers/base/dd.c b/drivers/base/dd.c index a5cde94bb982..3ac443b2ac08 100644 --- a/drivers/base/dd.c +++ b/drivers/base/dd.c | |||
| @@ -30,12 +30,12 @@ static void driver_bound(struct device *dev) | |||
| 30 | { | 30 | { |
| 31 | if (klist_node_attached(&dev->knode_driver)) { | 31 | if (klist_node_attached(&dev->knode_driver)) { |
| 32 | printk(KERN_WARNING "%s: device %s already bound\n", | 32 | printk(KERN_WARNING "%s: device %s already bound\n", |
| 33 | __FUNCTION__, kobject_name(&dev->kobj)); | 33 | __func__, kobject_name(&dev->kobj)); |
| 34 | return; | 34 | return; |
| 35 | } | 35 | } |
| 36 | 36 | ||
| 37 | pr_debug("driver: '%s': %s: bound to device '%s'\n", dev->bus_id, | 37 | pr_debug("driver: '%s': %s: bound to device '%s'\n", dev->bus_id, |
| 38 | __FUNCTION__, dev->driver->name); | 38 | __func__, dev->driver->name); |
| 39 | 39 | ||
| 40 | if (dev->bus) | 40 | if (dev->bus) |
| 41 | blocking_notifier_call_chain(&dev->bus->p->bus_notifier, | 41 | blocking_notifier_call_chain(&dev->bus->p->bus_notifier, |
| @@ -104,13 +104,13 @@ static int really_probe(struct device *dev, struct device_driver *drv) | |||
| 104 | 104 | ||
| 105 | atomic_inc(&probe_count); | 105 | atomic_inc(&probe_count); |
| 106 | pr_debug("bus: '%s': %s: probing driver %s with device %s\n", | 106 | pr_debug("bus: '%s': %s: probing driver %s with device %s\n", |
| 107 | drv->bus->name, __FUNCTION__, drv->name, dev->bus_id); | 107 | drv->bus->name, __func__, drv->name, dev->bus_id); |
| 108 | WARN_ON(!list_empty(&dev->devres_head)); | 108 | WARN_ON(!list_empty(&dev->devres_head)); |
| 109 | 109 | ||
| 110 | dev->driver = drv; | 110 | dev->driver = drv; |
| 111 | if (driver_sysfs_add(dev)) { | 111 | if (driver_sysfs_add(dev)) { |
| 112 | printk(KERN_ERR "%s: driver_sysfs_add(%s) failed\n", | 112 | printk(KERN_ERR "%s: driver_sysfs_add(%s) failed\n", |
| 113 | __FUNCTION__, dev->bus_id); | 113 | __func__, dev->bus_id); |
| 114 | goto probe_failed; | 114 | goto probe_failed; |
| 115 | } | 115 | } |
| 116 | 116 | ||
| @@ -127,7 +127,7 @@ static int really_probe(struct device *dev, struct device_driver *drv) | |||
| 127 | driver_bound(dev); | 127 | driver_bound(dev); |
| 128 | ret = 1; | 128 | ret = 1; |
| 129 | pr_debug("bus: '%s': %s: bound device %s to driver %s\n", | 129 | pr_debug("bus: '%s': %s: bound device %s to driver %s\n", |
| 130 | drv->bus->name, __FUNCTION__, dev->bus_id, drv->name); | 130 | drv->bus->name, __func__, dev->bus_id, drv->name); |
| 131 | goto done; | 131 | goto done; |
| 132 | 132 | ||
| 133 | probe_failed: | 133 | probe_failed: |
| @@ -160,7 +160,7 @@ done: | |||
| 160 | */ | 160 | */ |
| 161 | int driver_probe_done(void) | 161 | int driver_probe_done(void) |
| 162 | { | 162 | { |
| 163 | pr_debug("%s: probe_count = %d\n", __FUNCTION__, | 163 | pr_debug("%s: probe_count = %d\n", __func__, |
| 164 | atomic_read(&probe_count)); | 164 | atomic_read(&probe_count)); |
| 165 | if (atomic_read(&probe_count)) | 165 | if (atomic_read(&probe_count)) |
| 166 | return -EBUSY; | 166 | return -EBUSY; |
| @@ -194,7 +194,7 @@ int driver_probe_device(struct device_driver *drv, struct device *dev) | |||
| 194 | goto done; | 194 | goto done; |
| 195 | 195 | ||
| 196 | pr_debug("bus: '%s': %s: matched device %s with driver %s\n", | 196 | pr_debug("bus: '%s': %s: matched device %s with driver %s\n", |
| 197 | drv->bus->name, __FUNCTION__, dev->bus_id, drv->name); | 197 | drv->bus->name, __func__, dev->bus_id, drv->name); |
| 198 | 198 | ||
| 199 | ret = really_probe(dev, drv); | 199 | ret = really_probe(dev, drv); |
| 200 | 200 | ||
