diff mbox

spi: dw-pci: fix typo

Message ID 397a6e6c794c4445150c823510187775b17e9c29.1388992893.git.baruch@tkos.co.il (mailing list archive)
State Accepted
Commit fa4934a02adaac9d5bbd2b9ac818c523bf2ea9aa
Headers show

Commit Message

Baruch Siach Jan. 6, 2014, 7:21 a.m. UTC
Commit 04f421e7b0b10 (spi: dw: use managed resources) introduced a typo in
struct field reference. Fix it.

Fixes build failure:

drivers/spi/spi-dw-pci.c: In function 'spi_pci_probe':
drivers/spi/spi-dw-pci.c:50:29: error: 'dev' undeclared (first use in this function)
  dwpci = devm_kzalloc(&pdev-dev, sizeof(struct dw_spi_pci), GFP_KERNEL);
                             ^

Cc: Feng Tang <feng.tang@intel.com>
Reported-by: Stephen Rothwell <sfr@canb.auug.org.au>
Signed-off-by: Baruch Siach <baruch@tkos.co.il>
---
 drivers/spi/spi-dw-pci.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

Comments

Mark Brown Jan. 6, 2014, 12:11 p.m. UTC | #1
On Mon, Jan 06, 2014 at 09:21:33AM +0200, Baruch Siach wrote:
> Commit 04f421e7b0b10 (spi: dw: use managed resources) introduced a typo in
> struct field reference. Fix it.
> 
> Fixes build failure:

Applied, thanks.
diff mbox

Patch

diff --git a/drivers/spi/spi-dw-pci.c b/drivers/spi/spi-dw-pci.c
index 760dc0017a33..9622e5ee1263 100644
--- a/drivers/spi/spi-dw-pci.c
+++ b/drivers/spi/spi-dw-pci.c
@@ -47,7 +47,8 @@  static int spi_pci_probe(struct pci_dev *pdev,
 	if (ret)
 		return ret;
 
-	dwpci = devm_kzalloc(&pdev-dev, sizeof(struct dw_spi_pci), GFP_KERNEL);
+	dwpci = devm_kzalloc(&pdev->dev, sizeof(struct dw_spi_pci),
+			GFP_KERNEL);
 	if (!dwpci)
 		return -ENOMEM;