diff options
author | Grant Likely <grant.likely@secretlab.ca> | 2009-11-25 09:23:35 -0500 |
---|---|---|
committer | Grant Likely <grant.likely@secretlab.ca> | 2009-12-08 20:48:15 -0500 |
commit | 920712af498a3081a9ac8256951d1c7eae109c50 (patch) | |
tree | f10ffbbd3a3e461c7781835bbef35cbf5f1ae24b /drivers/spi/xilinx_spi.c | |
parent | 937041e21634ffecc92d05cf693423a2c95b7252 (diff) |
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: Grant Likely <grant.likely@secretlab.ca>
Diffstat (limited to 'drivers/spi/xilinx_spi.c')
-rw-r--r-- | drivers/spi/xilinx_spi.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/spi/xilinx_spi.c b/drivers/spi/xilinx_spi.c index b927812822c1..9f386379c169 100644 --- a/drivers/spi/xilinx_spi.c +++ b/drivers/spi/xilinx_spi.c | |||
@@ -408,8 +408,8 @@ struct spi_master *xilinx_spi_init(struct device *dev, struct resource *mem, | |||
408 | goto free_irq; | 408 | goto free_irq; |
409 | } | 409 | } |
410 | 410 | ||
411 | dev_info(dev, "at 0x%08X mapped to 0x%08X, irq=%d\n", | 411 | dev_info(dev, "at 0x%08llX mapped to 0x%p, irq=%d\n", |
412 | (u32)mem->start, (u32)xspi->regs, xspi->irq); | 412 | (unsigned long long)mem->start, xspi->regs, xspi->irq); |
413 | return master; | 413 | return master; |
414 | 414 | ||
415 | free_irq: | 415 | free_irq: |