From: Eric Lapuyade Date: Thu, 19 Sep 2013 14:52:06 +0000 (+0200) Subject: NFC: NCI: Store the spi device pointer from the spi instance X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=645d5087bd9667ed398bcb4bfd8784e1de1ee693;p=linux.git NFC: NCI: Store the spi device pointer from the spi instance Storing the spi device was forgotten in the original implementation, which would pretty obviously cause some kind of serious crash when actually trying to send something through that device. Signed-off-by: Eric Lapuyade Signed-off-by: Samuel Ortiz --- diff --git a/net/nfc/nci/spi.c b/net/nfc/nci/spi.c index 910dfd8015f41..5c22340247749 100644 --- a/net/nfc/nci/spi.c +++ b/net/nfc/nci/spi.c @@ -129,6 +129,7 @@ struct nci_spi *nci_spi_allocate_spi(struct spi_device *spi, nspi->acknowledge_mode = acknowledge_mode; nspi->xfer_udelay = delay; + nspi->spi = spi; nspi->ndev = ndev; return nspi;