]> git.karo-electronics.de Git - karo-tx-linux.git/blobdiff - include/linux/mfd/core.h
mfd: core: Add helper function to register hotplug devices
[karo-tx-linux.git] / include / linux / mfd / core.h
index 73e1709d4c093de820fa0584f5f28f48ea41b543..a76bc100bf974d667f64fec5dc4619297a8d71b7 100644 (file)
@@ -111,6 +111,13 @@ extern int mfd_add_devices(struct device *parent, int id,
                           struct resource *mem_base,
                           int irq_base, struct irq_domain *irq_domain);
 
+static inline int mfd_add_hotplug_devices(struct device *parent,
+               const struct mfd_cell *cells, int n_devs)
+{
+       return mfd_add_devices(parent, PLATFORM_DEVID_AUTO, cells, n_devs,
+                       NULL, 0, NULL);
+}
+
 extern void mfd_remove_devices(struct device *parent);
 
 #endif