diff options
Diffstat (limited to 'Documentation/spi/spi-summary')
-rw-r--r-- | Documentation/spi/spi-summary | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/Documentation/spi/spi-summary b/Documentation/spi/spi-summary index 72795796b13d..ecc7c9eb9f29 100644 --- a/Documentation/spi/spi-summary +++ b/Documentation/spi/spi-summary | |||
@@ -284,7 +284,6 @@ SPI protocol drivers somewhat resemble platform device drivers: | |||
284 | static struct spi_driver CHIP_driver = { | 284 | static struct spi_driver CHIP_driver = { |
285 | .driver = { | 285 | .driver = { |
286 | .name = "CHIP", | 286 | .name = "CHIP", |
287 | .bus = &spi_bus_type, | ||
288 | .owner = THIS_MODULE, | 287 | .owner = THIS_MODULE, |
289 | }, | 288 | }, |
290 | 289 | ||
@@ -312,7 +311,7 @@ might look like this unless you're creating a class_device: | |||
312 | chip = kzalloc(sizeof *chip, GFP_KERNEL); | 311 | chip = kzalloc(sizeof *chip, GFP_KERNEL); |
313 | if (!chip) | 312 | if (!chip) |
314 | return -ENOMEM; | 313 | return -ENOMEM; |
315 | dev_set_drvdata(&spi->dev, chip); | 314 | spi_set_drvdata(spi, chip); |
316 | 315 | ||
317 | ... etc | 316 | ... etc |
318 | return 0; | 317 | return 0; |