summaryrefslogtreecommitdiff
path: root/include/linux/device
diff options
context:
space:
mode:
authorGreg Kroah-Hartman <gregkh@linuxfoundation.org>2023-02-08 12:13:26 +0100
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2023-02-09 10:43:37 +0100
commitd2bf38c088e0d5467a0e8a2055d6f95dff5c2125 (patch)
tree717758ce8ceb1c427042142804713ce98ce243c3 /include/linux/device
parent63b823d7d3cd275c3347233f95bdf966a595dbc8 (diff)
driver core: remove private pointer from struct bus_type
Now that the driver code has been refactored to not rely on the pointer from a struct bus_type to the private structure it can be safely removed from the structure entirely. This will allow most bus_type structures to now be marked as const. Cc: "Rafael J. Wysocki" <rafael@kernel.org> Link: https://lore.kernel.org/r/20230208111330.439504-18-gregkh@linuxfoundation.org Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'include/linux/device')
-rw-r--r--include/linux/device/bus.h4
1 files changed, 0 insertions, 4 deletions
diff --git a/include/linux/device/bus.h b/include/linux/device/bus.h
index f6537f5fc535..22bf63469275 100644
--- a/include/linux/device/bus.h
+++ b/include/linux/device/bus.h
@@ -66,8 +66,6 @@ struct fwnode_handle;
* @iommu_ops: IOMMU specific operations for this bus, used to attach IOMMU
* driver implementations to a bus and allow the driver to do
* bus-specific setup
- * @p: The private data of the driver core, only the driver core can
- * touch this.
* @lock_key: Lock class key for use by the lock validator
* @need_parent_lock: When probing or removing a device on this bus, the
* device core should lock the device's parent.
@@ -111,8 +109,6 @@ struct bus_type {
const struct iommu_ops *iommu_ops;
- struct subsys_private *p;
-
bool need_parent_lock;
};