From: Andy Shevchenko Date: Wed, 7 Jan 2015 14:56:54 +0000 (+0200) Subject: spi: dw: amend warning message X-Git-Tag: firefly_0821_release~176^2~2405^2~5^5~3 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=3dbb3b98e854bceed38fbde930fb8cf8701def73;p=firefly-linux-kernel-4.4.55.git 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. Signed-off-by: Andy Shevchenko Signed-off-by: Mark Brown --- diff --git a/drivers/spi/spi-dw.c b/drivers/spi/spi-dw.c index 1a0f266c4268..8edcd1b84562 100644 --- a/drivers/spi/spi-dw.c +++ b/drivers/spi/spi-dw.c @@ -673,7 +673,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; } }