mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-30 11:41:38 -04:00
device create: misc: convert device_create_drvdata to device_create
Now that device_create() has been audited, rename things back to the original call to be sane. Signed-off-by: Greg Kroah-Hartman <[email protected]>
This commit is contained in:
parent
91bd418fdc
commit
a9b12619f7
18 changed files with 39 additions and 49 deletions
|
|
@ -583,10 +583,9 @@ static int spidev_probe(struct spi_device *spi)
|
|||
struct device *dev;
|
||||
|
||||
spidev->devt = MKDEV(SPIDEV_MAJOR, minor);
|
||||
dev = device_create_drvdata(spidev_class, &spi->dev,
|
||||
spidev->devt, spidev,
|
||||
"spidev%d.%d",
|
||||
spi->master->bus_num, spi->chip_select);
|
||||
dev = device_create(spidev_class, &spi->dev, spidev->devt,
|
||||
spidev, "spidev%d.%d",
|
||||
spi->master->bus_num, spi->chip_select);
|
||||
status = IS_ERR(dev) ? PTR_ERR(dev) : 0;
|
||||
} else {
|
||||
dev_dbg(&spi->dev, "no minor number available!\n");
|
||||
|
|
|
|||
Loading…
Reference in a new issue