]> pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - drivers/spi/xilinx_spi.c
sky2: Hold RTNL while calling dev_close()
[linux-2.6-omap-h63xx.git] / drivers / spi / xilinx_spi.c
index 5d04f520c12323067e810047afe0aa0e740d1851..113a0468ffcbd3291402c136322596ac75ab28e2 100644 (file)
@@ -151,13 +151,13 @@ static int xilinx_spi_setup_transfer(struct spi_device *spi,
        hz = (t) ? t->speed_hz : spi->max_speed_hz;
        if (bits_per_word != 8) {
                dev_err(&spi->dev, "%s, unsupported bits_per_word=%d\n",
-                       __FUNCTION__, bits_per_word);
+                       __func__, bits_per_word);
                return -EINVAL;
        }
 
        if (hz && xspi->speed_hz > hz) {
                dev_err(&spi->dev, "%s, unsupported clock rate %uHz\n",
-                       __FUNCTION__, hz);
+                       __func__, hz);
                return -EINVAL;
        }
 
@@ -181,7 +181,7 @@ static int xilinx_spi_setup(struct spi_device *spi)
 
        if (spi->mode & ~MODEBITS) {
                dev_err(&spi->dev, "%s, unsupported mode bits %x\n",
-                       __FUNCTION__, spi->mode & ~MODEBITS);
+                       __func__, spi->mode & ~MODEBITS);
                return -EINVAL;
        }
 
@@ -190,7 +190,7 @@ static int xilinx_spi_setup(struct spi_device *spi)
                return retval;
 
        dev_dbg(&spi->dev, "%s, mode %d, %u bits/w, %u nsec/bit\n",
-               __FUNCTION__, spi->mode & MODEBITS, spi->bits_per_word, 0);
+               __func__, spi->mode & MODEBITS, spi->bits_per_word, 0);
 
        return 0;
 }
@@ -408,6 +408,9 @@ static int __devexit xilinx_spi_remove(struct platform_device *dev)
        return 0;
 }
 
+/* work with hotplug and coldplug */
+MODULE_ALIAS("platform:" XILINX_SPI_NAME);
+
 static struct platform_driver xilinx_spi_driver = {
        .probe  = xilinx_spi_probe,
        .remove = __devexit_p(xilinx_spi_remove),