diff options
Diffstat (limited to 'Documentation/spi')
-rw-r--r-- | Documentation/spi/spi-summary | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Documentation/spi/spi-summary b/Documentation/spi/spi-summary index 72795796b13d..81b6230d3d22 100644 --- a/Documentation/spi/spi-summary +++ b/Documentation/spi/spi-summary | |||
@@ -312,7 +312,7 @@ might look like this unless you're creating a class_device: | |||
312 | chip = kzalloc(sizeof *chip, GFP_KERNEL); | 312 | chip = kzalloc(sizeof *chip, GFP_KERNEL); |
313 | if (!chip) | 313 | if (!chip) |
314 | return -ENOMEM; | 314 | return -ENOMEM; |
315 | dev_set_drvdata(&spi->dev, chip); | 315 | spi_set_drvdata(spi, chip); |
316 | 316 | ||
317 | ... etc | 317 | ... etc |
318 | return 0; | 318 | return 0; |