]> git.proxmox.com Git - mirror_ubuntu-eoan-kernel.git/commitdiff
pinctrl: pinctrl-nomadik: Append sleepmode property with vendor specific prefixes
authorLee Jones <lee.jones@linaro.org>
Thu, 14 Jun 2012 10:27:56 +0000 (11:27 +0100)
committerLee Jones <lee.jones@linaro.org>
Fri, 13 Jul 2012 08:14:39 +0000 (10:14 +0200)
Any non-standard property should contain the vendor's identifier which
should be perpended onto the property name followed by a comma. This
aids in name-space collision prevention. This patch ensures the
sleepmode property adheres to the rules.

Acked-by: Linus Walleij <linus.walleij@linaro.org>
Signed-off-by: Lee Jones <lee.jones@linaro.org>
Documentation/devicetree/bindings/gpio/gpio-nmk.txt
drivers/pinctrl/pinctrl-nomadik.c

index ee87467ad8d684d33d43cbd1de95ed85699f3359..8315ac7780ef96429dd4b4dc421aa8ba98558081 100644 (file)
@@ -26,6 +26,6 @@ Example:
                         #gpio-cells = <2>;
                         gpio-controller;
                         interrupt-controller;
-                        supports-sleepmode;
+                        st,supports-sleepmode;
                         gpio-bank = <1>;
                 };
index 3e7e47d6b38526178b0985bf0e7162f8fab16d70..dd9e6f26416da777dfb66231aca0c9f86bade9a0 100644 (file)
@@ -1198,7 +1198,7 @@ static int __devinit nmk_gpio_probe(struct platform_device *dev)
                if (!pdata)
                        return -ENOMEM;
 
-               if (of_get_property(np, "supports-sleepmode", NULL))
+               if (of_get_property(np, "st,supports-sleepmode", NULL))
                        pdata->supports_sleepmode = true;
 
                if (of_property_read_u32(np, "gpio-bank", &dev->id)) {