spi: meson-spicc: fix do_div build error on non-arm64
authorNeil Armstrong <neil.armstrong@linaro.org>
Wed, 2 Nov 2022 08:46:01 +0000 (09:46 +0100)
committerMark Brown <broonie@kernel.org>
Wed, 2 Nov 2022 12:27:15 +0000 (12:27 +0000)
This fixes :
error: passing argument 1 of '__div64_32' from incompatible pointer type

By passing an uint64_t as first variable to do_div().

Reported-by: kernel test robot <lkp@intel.com>
Fixes: 04694e50020b ("spi: meson-spicc: move wait completion in driver to take bursts delay in account")
Acked-by: Martin Blumenstingl <martin.blumenstingl@googlemail.com>
Signed-off-by: Neil Armstrong <neil.armstrong@linaro.org>
Link: https://lore.kernel.org/r/20221027-b4-spicc-burst-delay-fix-v2-0-8cc2bab3417a@linaro.org
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/spi/spi-meson-spicc.c

index 52bffab..1b4195c 100644 (file)
@@ -387,7 +387,7 @@ static int meson_spicc_transfer_one(struct spi_master *master,
                                    struct spi_transfer *xfer)
 {
        struct meson_spicc_device *spicc = spi_master_get_devdata(master);
-       unsigned long timeout;
+       uint64_t timeout;
 
        /* Store current transfer */
        spicc->xfer = xfer;