diff options
author | Baruch Siach <baruch@tkos.co.il> | 2014-01-06 09:21:33 +0200 |
---|---|---|
committer | Mark Brown <broonie@linaro.org> | 2014-01-06 12:11:28 +0000 |
commit | fa4934a02adaac9d5bbd2b9ac818c523bf2ea9aa (patch) | |
tree | e0fdccf7afc10403f25538a83f4567d27080cd8b /drivers/spi/spi-dw-pci.c | |
parent | 68066bb378a0504439e046cdb55d88362eb6379d (diff) | |
download | linux-fa4934a02adaac9d5bbd2b9ac818c523bf2ea9aa.tar.bz2 |
spi: dw-pci: fix typo
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);
^
Reported-by: Stephen Rothwell <sfr@canb.auug.org.au>
Signed-off-by: Baruch Siach <baruch@tkos.co.il>
Signed-off-by: Mark Brown <broonie@linaro.org>
Diffstat (limited to 'drivers/spi/spi-dw-pci.c')
-rw-r--r-- | drivers/spi/spi-dw-pci.c | 3 |
1 files changed, 2 insertions, 1 deletions
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; |