On Tue, Jan 21, 2014 at 07:18:44AM -0200, Fabio Estevam wrote:
On Tue, Jan 21, 2014 at 7:12 AM, Ezequiel Garcia
[off-list ref] wrote:
quoted
+static int orion_wdt_clock_init(struct platform_device *pdev,
+ struct orion_watchdog *dev)
+{
+ dev->clk = devm_clk_get(&pdev->dev, NULL);
+ if (IS_ERR(dev->clk))
+ return -ENODEV;
Shouldn't it be 'return PTR_ERR(dev->clk)' instead?
[..]
quoted
+ clk_prepare_enable(dev->clk);
clk_prepare_enable may fail, so better check its return value.
Indeed.
Thanks!
--
Ezequiel García, Free Electrons
Embedded Linux, Kernel and Android Engineering
http://free-electrons.com
--
To unsubscribe from this list: send the line "unsubscribe devicetree" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at http://vger.kernel.org/majordomo-info.html