Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 920712af authored by Grant Likely's avatar Grant Likely
Browse files

spi/xilinx_spi: fix incorrect casting



This patch fixes the error exposed by the following build warning:

drivers/spi/xilinx_spi.c: In function 'xilinx_spi_init':
drivers/spi/xilinx_spi.c:411: warning: cast from pointer to integer
of different size

Fixed by change %x to %p in the format string.

Signed-off-by: default avatarGrant Likely <grant.likely@secretlab.ca>
parent 937041e2
Loading
Loading
Loading
Loading
+2 −2
Original line number Original line Diff line number Diff line
@@ -408,8 +408,8 @@ struct spi_master *xilinx_spi_init(struct device *dev, struct resource *mem,
		goto free_irq;
		goto free_irq;
	}
	}


	dev_info(dev, "at 0x%08X mapped to 0x%08X, irq=%d\n",
	dev_info(dev, "at 0x%08llX mapped to 0x%p, irq=%d\n",
		(u32)mem->start, (u32)xspi->regs, xspi->irq);
		(unsigned long long)mem->start, xspi->regs, xspi->irq);
	return master;
	return master;


free_irq:
free_irq: