[U-Boot] [PATCH 1/4] drivers: mmc: omap_hsmmc: fix build breakage
Tom Rini
trini at konsulko.com
Wed Aug 10 18:27:40 CEST 2016
On Wed, Aug 10, 2016 at 07:24:03PM +0530, Sekhar Nori wrote:
> 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 at ti.com>
Reviewed-by: Tom Rini <trini at konsulko.com>
--
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: Digital signature
URL: <http://lists.denx.de/pipermail/u-boot/attachments/20160810/93a33498/attachment.sig>
More information about the U-Boot
mailing list