spi: spi-uclass: Block dm_scan_fdt_dev with OF_CONTROL to prevent build failures
authorFaiz Abbas <faiz_abbas@ti.com>
Mon, 14 Sep 2020 06:41:14 +0000 (12:11 +0530)
committerLokesh Vutla <lokeshvutla@ti.com>
Tue, 15 Sep 2020 13:21:53 +0000 (18:51 +0530)
commit280af011563574844fa3c20acd2cbbd7ee669da8
treeae6ec7520a4c20b4260a84015e2b89903bd58521
parent38e6ddc4d7fb215a15b1ff5b3ebd72ee3cc009e7
spi: spi-uclass: Block dm_scan_fdt_dev with OF_CONTROL to prevent build failures

There are devices which don't use OF_CONTROL or OF_PLATDATA but instead
rely on statically defined platdata. Block dm_scan_fdt_dev() with both
configs to avoid build failures under this condition.

Signed-off-by: Faiz Abbas <faiz_abbas@ti.com>
Reviewed-by: Jagan Teki <jagan@amarulasolutions.com>
drivers/spi/spi-uclass.c