MLK-17750: drm/imx: ldb: Fix build on imx6/7
authorLeonard Crestez <leonard.crestez@nxp.com>
Fri, 9 Feb 2018 14:54:55 +0000 (16:54 +0200)
committerLeonard Crestez <leonard.crestez@nxp.com>
Wed, 17 Apr 2019 23:51:34 +0000 (02:51 +0300)
commitf5c76125c00e8c71ca430f9bea12fc059f08308b
treee9e981b4d1b4925449b42654bb7c620420d50b0c
parentdf501c0a96cb017c921756d57c4c5ee7d1b9f84e
MLK-17750: drm/imx: ldb: Fix build on imx6/7

This code is enabled in upstream imx_v6_v7_defconfig but fails to build
because of sc api calls. Fix this by adding ifdef checks to pixel_link
code.

Check for CONFIG_HAVE_IMX8_SOC becuase it is selected by both 8qm and
8qx.

These calls are already guarded at runtime with checks for devtype
pixel_link_valid_quirks so the empty ifdefed functions will never get
called anyway.

Signed-off-by: Leonard Crestez <leonard.crestez@nxp.com>
It might make sense to add a dedicated config option for SC api
like CONFIG_HAVE_IMX_SCU, right now drivers/soc/imx/sc is guarded by
CONFIG_ARCH_FSL_IMX8QM which means you can't build 8qxp separately.

(cherry picked from commit a928239dffb3bf5232340eeb24fb583e4b2635b6)
drivers/gpu/drm/imx/imx-ldb.c