Merge tag 'ext4_for_linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tytso...
[cascardo/linux.git] / include / linux / platform_device.h
index cd46ee5..ce8e4ff 100644 (file)
@@ -180,6 +180,9 @@ struct platform_driver {
        const struct platform_device_id *id_table;
 };
 
+#define to_platform_driver(drv)        (container_of((drv), struct platform_driver, \
+                                driver))
+
 /*
  * use a macro to avoid include chaining to get THIS_MODULE
  */