diff options
| author | Faiz Abbas <[email protected]> | 2020-09-14 12:11:14 +0530 |
|---|---|---|
| committer | Lokesh Vutla <[email protected]> | 2020-09-15 18:51:53 +0530 |
| commit | 280af011563574844fa3c20acd2cbbd7ee669da8 (patch) | |
| tree | ae6ec7520a4c20b4260a84015e2b89903bd58521 | |
| parent | 38e6ddc4d7fb215a15b1ff5b3ebd72ee3cc009e7 (diff) | |
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 <[email protected]>
Reviewed-by: Jagan Teki <[email protected]>
| -rw-r--r-- | drivers/spi/spi-uclass.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/spi/spi-uclass.c b/drivers/spi/spi-uclass.c index cffd9cf0b0e..55a8eed8901 100644 --- a/drivers/spi/spi-uclass.c +++ b/drivers/spi/spi-uclass.c @@ -497,7 +497,7 @@ UCLASS_DRIVER(spi) = { .id = UCLASS_SPI, .name = "spi", .flags = DM_UC_FLAG_SEQ_ALIAS, -#if !CONFIG_IS_ENABLED(OF_PLATDATA) +#if CONFIG_IS_ENABLED(OF_CONTROL) && !CONFIG_IS_ENABLED(OF_PLATDATA) .post_bind = dm_scan_fdt_dev, #endif .post_probe = spi_post_probe, |
