pinctrl: nomadik: add clk_prepare() call
authorLinus Walleij <linus.walleij@linaro.org>
Wed, 6 Jun 2012 20:50:41 +0000 (22:50 +0200)
committerLinus Walleij <linus.walleij@linaro.org>
Tue, 12 Jun 2012 10:57:07 +0000 (12:57 +0200)
We now strictly require clk_prepare() calls to be issued before
any clk_enable() calls.

Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
drivers/pinctrl/pinctrl-nomadik.c

index b26395d16347db6dcecf40d8aa438d2409c02bd3..ba7122ff480af0e252df533246ceb5be404f094f 100644 (file)
@@ -1246,6 +1246,7 @@ static int __devinit nmk_gpio_probe(struct platform_device *dev)
                ret = PTR_ERR(clk);
                goto out_unmap;
        }
+       clk_prepare(clk);
 
        nmk_chip = kzalloc(sizeof(*nmk_chip), GFP_KERNEL);
        if (!nmk_chip) {