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-Tag: firefly_0821_release~176^2~4570^2~3^2^2~361^2~21 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=645d5087bd9667ed398bcb4bfd8784e1de1ee693;p=firefly-linux-kernel-4.4.55.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 910dfd8015f4..5c2234024774 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;