]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
drm/dsi: check for CONFIG_OF when defining of_mipi_dsi_device_add
authorArchit Taneja <architt@codeaurora.org>
Thu, 10 Dec 2015 12:41:35 +0000 (18:11 +0530)
committerNicolas Dechesne <nicolas.dechesne@linaro.org>
Tue, 3 May 2016 22:07:07 +0000 (00:07 +0200)
commitf5105db991f97e58b8ff3d31d160a70b72fc4daa
tree7a74d691a8ad0e937b4c5a8e9f7147fcde5fe0f8
parent8205f603ceeb02d08a720676d9075c9e75e47b0f
drm/dsi: check for CONFIG_OF when defining of_mipi_dsi_device_add

of_mipi_dsi_device_add is used only when CONFIG_OF is enabled. It
currently works if OF support is disabled, but this will change
when we add more functionality to it.

Define the original func if CONFIG_OF is enabled. Define a dummy func
otherwise.

Signed-off-by: Archit Taneja <architt@codeaurora.org>
Signed-off-by: Amit Kucheria <amit.kucheria@linaro.org>
Signed-off-by: Nicolas Dechesne <nicolas.dechesne@linaro.org>
drivers/gpu/drm/drm_mipi_dsi.c