]> git.kernelconcepts.de Git - karo-tx-linux.git/commitdiff
NFC: NCI: Store the spi device pointer from the spi instance
authorEric Lapuyade <eric.lapuyade@linux.intel.com>
Thu, 19 Sep 2013 14:52:06 +0000 (16:52 +0200)
committerSamuel Ortiz <sameo@linux.intel.com>
Wed, 25 Sep 2013 00:02:30 +0000 (02:02 +0200)
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 <eric.lapuyade@intel.com>
Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>
net/nfc/nci/spi.c

index 910dfd8015f41294331383648e42d0fb38304add..5c223402477495c51cb65be330a90f7b22d9b1e5 100644 (file)
@@ -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;