]> git.karo-electronics.de Git - karo-tx-linux.git/blobdiff - drivers/spi/spidev.c
[media] mt9p031: Power down the sensor if no supported device has been detected
[karo-tx-linux.git] / drivers / spi / spidev.c
index 2e0655dbe07040a25eb2d3c6b79d05a3e647bf20..911e9e0711d2a040116e7e1f1bd6514a6fe4ad53 100644 (file)
@@ -603,7 +603,7 @@ static int spidev_probe(struct spi_device *spi)
                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;
+               status = PTR_RET(dev);
        } else {
                dev_dbg(&spi->dev, "no minor number available!\n");
                status = -ENODEV;