Re: [PATCH 2/7] Documentation: bindings: document the clocks for pxa3xx-nand

From: Robert Jarzmik
Date: Wed Jun 03 2015 - 15:14:17 EST


Antoine Tenart <antoine.tenart@xxxxxxxxxxxxxxxxxx> writes:

> The pxa3xx nand driver requires at least one clock to probe correctly.
> A second one, named 'ecc' can be specified if needed. Add the
> corresponding documentation.
Is it mandatory, really ?
The code does :
info->clk = devm_clk_get(&pdev->dev, NULL);
if (IS_ERR(info->clk)) {
dev_err(&pdev->dev, "failed to get nand clock\n");
return PTR_ERR(info->clk);
}

info->clk can very well be NULL, can't it ?

Cheers.

--
Robert
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/