diff options
author | Sekhar Nori <nsekhar@ti.com> | 2016-08-10 13:54:03 (GMT) |
---|---|---|
committer | Jaehoon Chung <jh80.chung@samsung.com> | 2016-08-16 01:24:10 (GMT) |
commit | 4de2de5149a0361fa62e5751ed05691d497844c5 (patch) | |
tree | e125611d2af47719532ab721bed581e6034c7ca7 /drivers/block/dwc_ahsata.c | |
parent | 4cc9699be7ffc6072482240f5ba208488abe1090 (diff) | |
download | u-boot-4de2de5149a0361fa62e5751ed05691d497844c5.tar.xz |
drivers: mmc: omap_hsmmc: fix build breakage
structure member 'cd_inverted' of omap_hsmmc_data
is available only when OMAP_HSMMC_USE_GPIO is
defined.
When CONFIG_DM_MMC is defined, but not
CONFIG_OMAP_GPIO, this will cause build breakage
in omap_hsmmc driver of the sort:
CC drivers/mmc/omap_hsmmc.o
../drivers/mmc/omap_hsmmc.c: In function 'omap_hsmmc_ofdata_to_platdata':
../drivers/mmc/omap_hsmmc.c:1763:6: error: 'struct omap_hsmmc_data' has no member named 'cd_inverted'
priv->cd_inverted = fdtdec_get_bool(fdt, node, "cd-inverted");
^
Fix this by accessing cd_inverted only when
OMAP_HSMMC_USE_GPIO is defined.
Signed-off-by: Sekhar Nori <nsekhar@ti.com>
Acked-by: Mugunthan V N <mugunthanvnm@ti.com>
Reviewed-by: Tom Rini <trini@konsulko.com>
Diffstat (limited to 'drivers/block/dwc_ahsata.c')
0 files changed, 0 insertions, 0 deletions