diff options
Diffstat (limited to 'include/linux')
| -rw-r--r-- | include/linux/debugfs.h | 2 | ||||
| -rw-r--r-- | include/linux/device.h | 3 | ||||
| -rw-r--r-- | include/linux/firmware.h | 11 | ||||
| -rw-r--r-- | include/linux/platform_device.h | 8 |
4 files changed, 12 insertions, 12 deletions
diff --git a/include/linux/debugfs.h b/include/linux/debugfs.h index 63f2465807d4..d68b4ea7343c 100644 --- a/include/linux/debugfs.h +++ b/include/linux/debugfs.h | |||
| @@ -79,6 +79,8 @@ struct dentry *debugfs_create_x64(const char *name, umode_t mode, | |||
| 79 | struct dentry *parent, u64 *value); | 79 | struct dentry *parent, u64 *value); |
| 80 | struct dentry *debugfs_create_size_t(const char *name, umode_t mode, | 80 | struct dentry *debugfs_create_size_t(const char *name, umode_t mode, |
| 81 | struct dentry *parent, size_t *value); | 81 | struct dentry *parent, size_t *value); |
| 82 | struct dentry *debugfs_create_atomic_t(const char *name, umode_t mode, | ||
| 83 | struct dentry *parent, atomic_t *value); | ||
| 82 | struct dentry *debugfs_create_bool(const char *name, umode_t mode, | 84 | struct dentry *debugfs_create_bool(const char *name, umode_t mode, |
| 83 | struct dentry *parent, u32 *value); | 85 | struct dentry *parent, u32 *value); |
| 84 | 86 | ||
diff --git a/include/linux/device.h b/include/linux/device.h index c0a126125325..9d4835a8f8b8 100644 --- a/include/linux/device.h +++ b/include/linux/device.h | |||
| @@ -80,6 +80,7 @@ extern void bus_remove_file(struct bus_type *, struct bus_attribute *); | |||
| 80 | * bus-specific setup | 80 | * bus-specific setup |
| 81 | * @p: The private data of the driver core, only the driver core can | 81 | * @p: The private data of the driver core, only the driver core can |
| 82 | * touch this. | 82 | * touch this. |
| 83 | * @lock_key: Lock class key for use by the lock validator | ||
| 83 | * | 84 | * |
| 84 | * A bus is a channel between the processor and one or more devices. For the | 85 | * A bus is a channel between the processor and one or more devices. For the |
| 85 | * purposes of the device model, all devices are connected via a bus, even if | 86 | * purposes of the device model, all devices are connected via a bus, even if |
| @@ -635,6 +636,7 @@ struct acpi_dev_node { | |||
| 635 | * segment limitations. | 636 | * segment limitations. |
| 636 | * @dma_pools: Dma pools (if dma'ble device). | 637 | * @dma_pools: Dma pools (if dma'ble device). |
| 637 | * @dma_mem: Internal for coherent mem override. | 638 | * @dma_mem: Internal for coherent mem override. |
| 639 | * @cma_area: Contiguous memory area for dma allocations | ||
| 638 | * @archdata: For arch-specific additions. | 640 | * @archdata: For arch-specific additions. |
| 639 | * @of_node: Associated device tree node. | 641 | * @of_node: Associated device tree node. |
| 640 | * @acpi_node: Associated ACPI device node. | 642 | * @acpi_node: Associated ACPI device node. |
| @@ -648,6 +650,7 @@ struct acpi_dev_node { | |||
| 648 | * @release: Callback to free the device after all references have | 650 | * @release: Callback to free the device after all references have |
| 649 | * gone away. This should be set by the allocator of the | 651 | * gone away. This should be set by the allocator of the |
| 650 | * device (i.e. the bus driver that discovered the device). | 652 | * device (i.e. the bus driver that discovered the device). |
| 653 | * @iommu_group: IOMMU group the device belongs to. | ||
| 651 | * | 654 | * |
| 652 | * At the lowest level, every device in a Linux system is represented by an | 655 | * At the lowest level, every device in a Linux system is represented by an |
| 653 | * instance of struct device. The device structure contains the information | 656 | * instance of struct device. The device structure contains the information |
diff --git a/include/linux/firmware.h b/include/linux/firmware.h index e4279fedb93a..e154c1005cd1 100644 --- a/include/linux/firmware.h +++ b/include/linux/firmware.h | |||
| @@ -47,8 +47,6 @@ int request_firmware_nowait( | |||
| 47 | void (*cont)(const struct firmware *fw, void *context)); | 47 | void (*cont)(const struct firmware *fw, void *context)); |
| 48 | 48 | ||
| 49 | void release_firmware(const struct firmware *fw); | 49 | void release_firmware(const struct firmware *fw); |
| 50 | int cache_firmware(const char *name); | ||
| 51 | int uncache_firmware(const char *name); | ||
| 52 | #else | 50 | #else |
| 53 | static inline int request_firmware(const struct firmware **fw, | 51 | static inline int request_firmware(const struct firmware **fw, |
| 54 | const char *name, | 52 | const char *name, |
| @@ -68,15 +66,6 @@ static inline void release_firmware(const struct firmware *fw) | |||
| 68 | { | 66 | { |
| 69 | } | 67 | } |
| 70 | 68 | ||
| 71 | static inline int cache_firmware(const char *name) | ||
| 72 | { | ||
| 73 | return -ENOENT; | ||
| 74 | } | ||
| 75 | |||
| 76 | static inline int uncache_firmware(const char *name) | ||
| 77 | { | ||
| 78 | return -EINVAL; | ||
| 79 | } | ||
| 80 | #endif | 69 | #endif |
| 81 | 70 | ||
| 82 | #endif | 71 | #endif |
diff --git a/include/linux/platform_device.h b/include/linux/platform_device.h index 9abf1db6aea6..cd46ee58b9dc 100644 --- a/include/linux/platform_device.h +++ b/include/linux/platform_device.h | |||
| @@ -180,7 +180,13 @@ struct platform_driver { | |||
| 180 | const struct platform_device_id *id_table; | 180 | const struct platform_device_id *id_table; |
| 181 | }; | 181 | }; |
| 182 | 182 | ||
| 183 | extern int platform_driver_register(struct platform_driver *); | 183 | /* |
| 184 | * use a macro to avoid include chaining to get THIS_MODULE | ||
| 185 | */ | ||
| 186 | #define platform_driver_register(drv) \ | ||
| 187 | __platform_driver_register(drv, THIS_MODULE) | ||
| 188 | extern int __platform_driver_register(struct platform_driver *, | ||
| 189 | struct module *); | ||
| 184 | extern void platform_driver_unregister(struct platform_driver *); | 190 | extern void platform_driver_unregister(struct platform_driver *); |
| 185 | 191 | ||
| 186 | /* non-hotpluggable platform devices may use this so that probe() and | 192 | /* non-hotpluggable platform devices may use this so that probe() and |
