drm/tegra: add missing include
PATCH 1/1 drm/tegra: add missing include
A newly merged patch to configure the XBAR caused a build failure in some configurations:
drivers/gpu/drm/tegra/sor.c: In function 'tegra_sor_set_pinmux':drivers/gpu/drm/tegra/sor.c:252:10: error: implicit declaration of function 'pinctrl_lookup_state' [-Werror=implicit-function-declaration]
state = pinctrl_lookup_state(sor->pinctrl, name);
^~~~~~~~~~~~~~~~~~~~drivers/gpu/drm/tegra/sor.c:252:8: error: assignment makes pointer from integer without a cast [-Werror=int-conversion]
state = pinctrl_lookup_state(sor->pinctrl, name);
The functions are declared in linux/pinctrl/consumer.h, so we need to include that file instead of relying on the inclusion to happen through another header.
--- drivers/gpu/drm/tegra/sor.c | 1 + 1 file changed, 1 insertion(+)
drivers/gpu/drm/tegra/sor.c +1 -0
@@ -13,6 +13,7 @@#include <linux/io.h> #include <linux/of_device.h> #include <linux/platform_device.h> +#include <linux/pinctrl/consumer.h> #include <linux/pm_runtime.h> #include <linux/regulator/consumer.h> #include <linux/reset.h>
Signature · 6 lines
2.9.0 _______________________________________________ dri-devel mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/dri-devel
Quoted 14 lines · Arnd Bergmann
A newly merged patch to configure the XBAR caused a build failure in some configurations:
drivers/gpu/drm/tegra/sor.c: In function 'tegra_sor_set_pinmux':drivers/gpu/drm/tegra/sor.c:252:10: error: implicit declaration of function 'pinctrl_lookup_state' [-Werror=implicit-function-declaration]state = pinctrl_lookup_state(sor->pinctrl, name); ^~~~~~~~~~~~~~~~~~~~
drivers/gpu/drm/tegra/sor.c:252:8: error: assignment makes pointer from integer without a cast [-Werror=int-conversion]
state =pinctrl_lookup_state(sor->pinctrl, name);The functions are declared in
linux/pinctrl/consumer.h, so we need to include that file instead of relying on the inclusion to happen through another header.
Quoted 5 lines
Signed-off-by Arnd Bergmann <[email protected]>Fixes 9e9d1315f4f4 ("drm/tegra: sor: Make XBAR configurable per SoC")--- drivers/gpu/drm/tegra/sor.c | 1 + 1 file changed, 1 insertion(+)
This was actually introduced in 035f79bcd5e5 ("drm/tegra: sor: Support DPAUX pin control"), which is causing other problems at runtime, so I've backed it out again.
Thanks,
Thierry
_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel