diff options
| author | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2013-06-17 15:02:38 -0400 |
|---|---|---|
| committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2013-06-17 15:02:38 -0400 |
| commit | 1508124d8a4e0995362d93d82e5555a74bfc998f (patch) | |
| tree | 62b36e0fa03b40e68be6941c5139e8ff7653d0b2 /drivers | |
| parent | 976f8bef9cfb5246bc0e8dc781562daa79cb7aaf (diff) | |
| parent | 7d132055814ef17a6c7b69f342244c410a5e000f (diff) | |
Merge 3.10-rc6 into usb-next
We want the fixes in this branch as well.
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers')
86 files changed, 905 insertions, 476 deletions
diff --git a/drivers/acpi/scan.c b/drivers/acpi/scan.c index 44225cb15f3a..b14ac46948c9 100644 --- a/drivers/acpi/scan.c +++ b/drivers/acpi/scan.c | |||
| @@ -1017,11 +1017,8 @@ acpi_bus_driver_init(struct acpi_device *device, struct acpi_driver *driver) | |||
| 1017 | return -ENOSYS; | 1017 | return -ENOSYS; |
| 1018 | 1018 | ||
| 1019 | result = driver->ops.add(device); | 1019 | result = driver->ops.add(device); |
| 1020 | if (result) { | 1020 | if (result) |
| 1021 | device->driver = NULL; | ||
| 1022 | device->driver_data = NULL; | ||
| 1023 | return result; | 1021 | return result; |
| 1024 | } | ||
| 1025 | 1022 | ||
| 1026 | device->driver = driver; | 1023 | device->driver = driver; |
| 1027 | 1024 | ||
diff --git a/drivers/acpi/video.c b/drivers/acpi/video.c index 5d7075d25700..440eadf2d32c 100644 --- a/drivers/acpi/video.c +++ b/drivers/acpi/video.c | |||
| @@ -1722,6 +1722,9 @@ static int acpi_video_bus_add(struct acpi_device *device) | |||
| 1722 | int error; | 1722 | int error; |
| 1723 | acpi_status status; | 1723 | acpi_status status; |
| 1724 | 1724 | ||
| 1725 | if (device->handler) | ||
| 1726 | return -EINVAL; | ||
| 1727 | |||
| 1725 | status = acpi_walk_namespace(ACPI_TYPE_DEVICE, | 1728 | status = acpi_walk_namespace(ACPI_TYPE_DEVICE, |
| 1726 | device->parent->handle, 1, | 1729 | device->parent->handle, 1, |
| 1727 | acpi_video_bus_match, NULL, | 1730 | acpi_video_bus_match, NULL, |
diff --git a/drivers/base/regmap/regcache-rbtree.c b/drivers/base/regmap/regcache-rbtree.c index aa0875f6f1b7..02f490bad30f 100644 --- a/drivers/base/regmap/regcache-rbtree.c +++ b/drivers/base/regmap/regcache-rbtree.c | |||
| @@ -143,7 +143,7 @@ static int rbtree_show(struct seq_file *s, void *ignored) | |||
| 143 | int registers = 0; | 143 | int registers = 0; |
| 144 | int this_registers, average; | 144 | int this_registers, average; |
| 145 | 145 | ||
| 146 | map->lock(map); | 146 | map->lock(map->lock_arg); |
| 147 | 147 | ||
| 148 | mem_size = sizeof(*rbtree_ctx); | 148 | mem_size = sizeof(*rbtree_ctx); |
| 149 | mem_size += BITS_TO_LONGS(map->cache_present_nbits) * sizeof(long); | 149 | mem_size += BITS_TO_LONGS(map->cache_present_nbits) * sizeof(long); |
| @@ -170,7 +170,7 @@ static int rbtree_show(struct seq_file *s, void *ignored) | |||
| 170 | seq_printf(s, "%d nodes, %d registers, average %d registers, used %zu bytes\n", | 170 | seq_printf(s, "%d nodes, %d registers, average %d registers, used %zu bytes\n", |
| 171 | nodes, registers, average, mem_size); | 171 | nodes, registers, average, mem_size); |
| 172 | 172 | ||
| 173 | map->unlock(map); | 173 | map->unlock(map->lock_arg); |
| 174 | 174 | ||
| 175 | return 0; | ||
