Commit 134af9aa authored by Neil Armstrong's avatar Neil Armstrong Committed by Mark Brown

spi: meson-spicc: fix do_div build error on non-arm64

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: default avatarkernel test robot <lkp@intel.com>
Fixes: 04694e50 ("spi: meson-spicc: move wait completion in driver to take bursts delay in account")
Acked-by: default avatarMartin Blumenstingl <martin.blumenstingl@googlemail.com>
Signed-off-by: default avatarNeil Armstrong <neil.armstrong@linaro.org>
Link: https://lore.kernel.org/r/20221027-b4-spicc-burst-delay-fix-v2-0-8cc2bab3417a@linaro.orgSigned-off-by: default avatarMark Brown <broonie@kernel.org>
parent 92a66cbf
......@@ -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;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment