diff options
author | Greg Kroah-Hartman <gregkh@suse.de> | 2008-07-21 23:03:34 -0400 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2008-10-16 12:24:43 -0400 |
commit | a9b12619f7b6f19c871437ec24a088787a04b1de (patch) | |
tree | ff1b11e7affedccfd69fc20e14876d0821f6e555 /drivers/spi/spidev.c | |
parent | 91bd418fdc8526ee70a0e8f7970b584c8870ae10 (diff) |
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 <gregkh@suse.de>
Diffstat (limited to 'drivers/spi/spidev.c')
-rw-r--r-- | drivers/spi/spidev.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/drivers/spi/spidev.c b/drivers/spi/spidev.c index e5e0cfed5e3b..89a43755a453 100644 --- a/drivers/spi/spidev.c +++ b/drivers/spi/spidev.c | |||
@@ -583,10 +583,9 @@ static int spidev_probe(struct spi_device *spi) | |||
583 | struct device *dev; | 583 | struct device *dev; |
584 | 584 | ||
585 | spidev->devt = MKDEV(SPIDEV_MAJOR, minor); | 585 | spidev->devt = MKDEV(SPIDEV_MAJOR, minor); |
586 | dev = device_create_drvdata(spidev_class, &spi->dev, | 586 | dev = device_create(spidev_class, &spi->dev, spidev->devt, |
587 | spidev->devt, spidev, | 587 | spidev, "spidev%d.%d", |
588 | "spidev%d.%d", | 588 | spi->master->bus_num, spi->chip_select); |
589 | spi->master->bus_num, spi->chip_select); | ||
590 | status = IS_ERR(dev) ? PTR_ERR(dev) : 0; | 589 | status = IS_ERR(dev) ? PTR_ERR(dev) : 0; |
591 | } else { | 590 | } else { |
592 | dev_dbg(&spi->dev, "no minor number available!\n"); | 591 | dev_dbg(&spi->dev, "no minor number available!\n"); |