spi: dw: amend warning message
PATCH 1/1 spi: dw: amend warning message
In case of warning message in ->probe() we have to use HW device name instead of master because last is not defined yet.
--- drivers/spi/spi-dw.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/spi/spi-dw.c +1 -1
@@ -659,7 +659,7 @@ int dw_spi_add_host(struct device *dev, struct dw_spi *dws)if (dws->dma_ops && dws->dma_ops->dma_init) { ret = dws->dma_ops->dma_init (dws);if (ret) { -dev_warn (&master->dev,"DMA init failed\n" ); +dev_warn (dev,"DMA init failed\n" ); dws->dma_inited =0 ; }else { master->can_dma = dws->dma_ops->can_dma;
Signature · 6 lines
2.1.3 -- To unsubscribe from this list: send the line "unsubscribe linux-spi" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html
Quoted 13 lines · Andy Shevchenko
In case of warning message in ->probe() we have to use HW device name instead of master because last is not defined yet.
--- drivers/spi/spi-dw.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)drivers/spi/spi-dw.c +0
-0
drivers/spi/spi-dw.c int dw_spi_add_host(struct device *dev, struct dw_spi *dws) · line 665
Quoted 8 lines
drivers/spi/spi-dw.c +1
-1@@ -659,7 +659,7 @@ int dw_spi_add_host(struct device *dev, struct dw_spi *dws)if (dws->dma_ops && dws->dma_ops->dma_init) { ret = dws->dma_ops->dma_init (dws);if (ret) { -dev_warn (&master->dev,"DMA init failed\n" ); +dev_warn (dev,"DMA init failed\n" ); dws->dma_inited =0 ; }else { master->can_dma = dws->dma_ops->can_dma;
Oops, based on some WIP patches, though still applies smoothly on top of recent linux-next.
Signature · 7 lines
Andy Shevchenko <[email protected]> Intel Finland Oy -- To unsubscribe from this list: send the line "unsubscribe linux-spi" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html
Quoted 6 lines · Andy Shevchenko
drivers/spi/spi-dw.c int dw_spi_add_host(struct device *dev, struct dw_spi *dws) · line 662
Quoted 1 line · Andy Shevchenko
drivers/spi/spi-dw.c +1
-0+dev_warn (dev,"DMA init failed\n" );Oops, based on some WIP patches, though still applies smoothly on top of recent linux-next.
Not with git am it doesn't (I suspect mostly because it's easily confused by not having the required SHA1s but still).
Quoted 10 lines · Mark Brown
Quoted 6 lines · Andy Shevchenko
drivers/spi/spi-dw.c int dw_spi_add_host(struct device *dev, struct dw_spi *dws) · line 662
Quoted 1 line · Andy Shevchenko
drivers/spi/spi-dw.c +1
-0+dev_warn (dev,"DMA init failed\n" );Oops, based on some WIP patches, though still applies smoothly on top of recent linux-next.
Not with git am it doesn't (I suspect mostly because it's easily confused by not having the required SHA1s but still).
git am -C1 -s helps, but anyway I submitted v2 with one additional patch (the add-on I suggested to Alex Lin to print FIFO size when autodetection happened).
Signature · 7 lines
Andy Shevchenko <[email protected]> Intel Finland Oy -- To unsubscribe from this list: send the line "unsubscribe linux-spi" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html