mmc: of_mmc_spi: fix restricted cast warning of sparse
authorMasahiro Yamada <yamada.masahiro@socionext.com>
Mon, 31 Jul 2017 12:03:53 +0000 (21:03 +0900)
committerUlf Hansson <ulf.hansson@linaro.org>
Wed, 30 Aug 2017 12:01:45 +0000 (14:01 +0200)
Sparse reports "warning: cast to restricted __be32".

Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
drivers/mmc/host/of_mmc_spi.c

index 85bbebfde02e4896b6dda821ac86694237c3fa80..c9eed8436b6befbbdd3471d22c435da1660715ad 100644 (file)
@@ -71,7 +71,7 @@ struct mmc_spi_platform_data *mmc_spi_get_pdata(struct spi_device *spi)
        struct device *dev = &spi->dev;
        struct device_node *np = dev->of_node;
        struct of_mmc_spi *oms;
-       const u32 *voltage_ranges;
+       const __be32 *voltage_ranges;
        int num_ranges;
        int i;