[PATCH v6 1/1] video: drm: exynos: Add display-timing node parsing using video helper function
Linus Walleij
linus.walleij at linaro.org
Thu Feb 28 15:56:56 PST 2013
On Thu, Feb 28, 2013 at 2:51 AM, Joonyoung Shim <jy0922.shim at samsung.com> wrote:
> My mistake. If CONFIG_PINCTRL is disabled, devm_pinctrl_get_select_default
> can return NULL.
Yes, and that is perfectly legal and *NOT* an error.
> devm_pinctrl_get_select() and pinctrl_get_select() also need IS_ERR_OR_NULL
> instead of IS_ERR?
No.
In fact, IS_ERR_OR_NULL() shall not be used at all.
Check the LKML mailinglist for Russells recent struggle to
purge it from the kernel.
> And many drivers using above functions don't check NULL, right?
No, and they should not. Stub pinctrl handles, just like stub
clocks and stub regulators, are perfectly legal, just that they have
no effect.
Yours,
Linus Walleij
More information about the dri-devel
mailing list