drm/dsi: Check for CONFIG_OF when defining of_mipi_dsi_device_add()
authorArchit Taneja <architt@codeaurora.org>
Fri, 12 Feb 2016 09:18:30 +0000 (14:48 +0530)
committerThierry Reding <treding@nvidia.com>
Wed, 2 Mar 2016 15:59:04 +0000 (16:59 +0100)
commitfc903ebd50d0396b5de1ff614a009c2ddcb3222c
tree2851754f4330fefaccfa46cbfff5edd5897bcb47
parent92e963f50fc74041b5e9e744c330dca48e04f08d
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 function if CONFIG_OF is enabled and a dummy
function otherwise.

Signed-off-by: Archit Taneja <architt@codeaurora.org>
Signed-off-by: Thierry Reding <treding@nvidia.com>
drivers/gpu/drm/drm_mipi_dsi.c