Merge remote-tracking branch 'pinctrl/for-next'
[deliverable/linux.git] / drivers / pinctrl / nomadik / pinctrl-nomadik.c
index 35f62180db4e0427393f715ba5ba450d5c6fbeef..205fb399268a28e16ed80c8b6c52db1d1c5d34af 100644 (file)
@@ -11,7 +11,6 @@
  * published by the Free Software Foundation.
  */
 #include <linux/kernel.h>
-#include <linux/module.h>
 #include <linux/init.h>
 #include <linux/device.h>
 #include <linux/platform_device.h>
@@ -1110,10 +1109,8 @@ static int nmk_gpio_probe(struct platform_device *dev)
                return PTR_ERR(nmk_chip);
        }
 
-       if (of_get_property(np, "st,supports-sleepmode", NULL))
-               supports_sleepmode = true;
-       else
-               supports_sleepmode = false;
+       supports_sleepmode =
+               of_property_read_bool(np, "st,supports-sleepmode");
 
        /* Correct platform device ID */
        dev->id = nmk_chip->bank;
@@ -1985,7 +1982,3 @@ static int __init nmk_pinctrl_init(void)
        return platform_driver_register(&nmk_pinctrl_driver);
 }
 core_initcall(nmk_pinctrl_init);
-
-MODULE_AUTHOR("Prafulla WADASKAR and Alessandro Rubini");
-MODULE_DESCRIPTION("Nomadik GPIO Driver");
-MODULE_LICENSE("GPL");
This page took 0.024308 seconds and 5 git commands to generate.