Skip to content

Commit

Permalink
NFC: NCI: Store the spi device pointer from the spi instance
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Eric Lapuyade authored and Samuel Ortiz committed Sep 25, 2013
1 parent 1c7a4c2 commit 645d508
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions net/nfc/nci/spi.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 645d508

Please sign in to comment.