summaryrefslogtreecommitdiffstats
path: root/drivers/spi/spi-dw.c
diff options
context:
space:
mode:
authorLiu, ShuoX <shuox.liu@intel.com>2011-07-08 08:24:31 +0200
committerGrant Likely <grant.likely@secretlab.ca>2011-07-08 21:09:00 +0200
commit40bfff85ffb5c85ffabcb6d71e64f70799595f89 (patch)
tree79ea79510d9e1799a282b98012fe511ec57de382 /drivers/spi/spi-dw.c
parentspi/tegra: Use engineering names in DT compatible property (diff)
downloadlinux-40bfff85ffb5c85ffabcb6d71e64f70799595f89.tar.xz
linux-40bfff85ffb5c85ffabcb6d71e64f70799595f89.zip
spi/dw: Add spi number into spi irq desc
Signed-off-by: ShuoX Liu <shuox.liu@intel.com> Signed-off-by: Grant Likely <grant.likely@secretlab.ca>
Diffstat (limited to 'drivers/spi/spi-dw.c')
-rw-r--r--drivers/spi/spi-dw.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/drivers/spi/spi-dw.c b/drivers/spi/spi-dw.c
index ece5f69deaaf..857cd30b44bb 100644
--- a/drivers/spi/spi-dw.c
+++ b/drivers/spi/spi-dw.c
@@ -818,9 +818,11 @@ int __devinit dw_spi_add_host(struct dw_spi *dws)
dws->prev_chip = NULL;
dws->dma_inited = 0;
dws->dma_addr = (dma_addr_t)(dws->paddr + 0x60);
+ snprintf(dws->name, sizeof(dws->name), "dw_spi%d",
+ dws->bus_num);
ret = request_irq(dws->irq, dw_spi_irq, IRQF_SHARED,
- "dw_spi", dws);
+ dws->name, dws);
if (ret < 0) {
dev_err(&master->dev, "can not get IRQ\n");
goto err_free_master;