summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorKim Phillips <kim.phillips@freescale.com>2014-06-02 19:42:58 -0500
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2014-07-08 15:31:26 -0700
commit3d713e0e382e6fcfb4bba1501645b66c129ad60b (patch)
tree9b47c38f09df44537b163ca18eabc8c979aa1f04 /include
parent1cec24c59b4a133fc9c83912996168f511075485 (diff)
downloadlinux-stable-3d713e0e382e6fcfb4bba1501645b66c129ad60b.tar.gz
linux-stable-3d713e0e382e6fcfb4bba1501645b66c129ad60b.tar.bz2
linux-stable-3d713e0e382e6fcfb4bba1501645b66c129ad60b.zip
driver core: platform: add device binding path 'driver_override'
Needed by platform device drivers, such as the upcoming vfio-platform driver, in order to bypass the existing OF, ACPI, id_table and name string matches, and successfully be able to be bound to any device, like so: echo vfio-platform > /sys/bus/platform/devices/fff51000.ethernet/driver_override echo fff51000.ethernet > /sys/bus/platform/devices/fff51000.ethernet/driver/unbind echo fff51000.ethernet > /sys/bus/platform/drivers_probe This mimics "PCI: Introduce new device binding path using pci_dev.driver_override", which is an interface enhancement for more deterministic PCI device binding, e.g., when in the presence of hotplug. Reviewed-by: Alex Williamson <alex.williamson@redhat.com> Reviewed-by: Alexander Graf <agraf@suse.de> Reviewed-by: Stuart Yoder <stuart.yoder@freescale.com> Signed-off-by: Kim Phillips <kim.phillips@freescale.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'include')
-rw-r--r--include/linux/platform_device.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/linux/platform_device.h b/include/linux/platform_device.h
index 16f6654082dd..153d303af7eb 100644
--- a/include/linux/platform_device.h
+++ b/include/linux/platform_device.h
@@ -28,6 +28,7 @@ struct platform_device {
struct resource *resource;
const struct platform_device_id *id_entry;
+ char *driver_override; /* Driver name to force a match */
/* MFD cell pointer */
struct mfd_cell *mfd_cell;