diff options
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/spi/spi.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/spi/spi.c b/drivers/spi/spi.c index 7d215eaa1370..270e6211c2e3 100644 --- a/drivers/spi/spi.c +++ b/drivers/spi/spi.c | |||
@@ -366,6 +366,7 @@ spi_alloc_master(struct device *dev, unsigned size) | |||
366 | 366 | ||
367 | class_device_initialize(&master->cdev); | 367 | class_device_initialize(&master->cdev); |
368 | master->cdev.class = &spi_master_class; | 368 | master->cdev.class = &spi_master_class; |
369 | kobj_set_kset_s(&master->cdev, spi_master_class.subsys); | ||
369 | master->cdev.dev = get_device(dev); | 370 | master->cdev.dev = get_device(dev); |
370 | spi_master_set_devdata(master, &master[1]); | 371 | spi_master_set_devdata(master, &master[1]); |
371 | 372 | ||