Files
u-boot-tk1-som/drivers
Sekhar Nori 4de2de5149 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>
2016-08-16 10:24:10 +09:00
..
2015-11-02 10:38:00 +09:00
2016-08-02 09:47:34 -07:00
2016-01-27 15:32:05 +01:00
2016-08-15 10:26:12 -07:00
2016-08-15 15:29:03 -05:00
2016-08-15 10:26:13 -07:00
2016-08-15 15:29:03 -05:00
2016-08-15 10:26:13 -07:00
2016-07-14 18:33:11 -04:00
2016-02-06 12:00:59 +01:00
2016-08-12 16:00:50 -04:00
2016-03-14 19:21:44 -04:00