]> pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - drivers/spi/xilinx_spi.c
i2c/scx200_acb: Don't use 0 as NULL pointer
[linux-2.6-omap-h63xx.git] / drivers / spi / xilinx_spi.c
index f0bf9a68e96bf03424c65a891e91f4e1322b81b2..cf6aef34fe2595353335875197b671a823d59e3b 100644 (file)
@@ -21,7 +21,7 @@
 
 #include <syslib/virtex_devices.h>
 
-#define XILINX_SPI_NAME "xspi"
+#define XILINX_SPI_NAME "xilinx_spi"
 
 /* Register definitions as per "OPB Serial Peripheral Interface (SPI) (v1.00e)
  * Product Specification", DS464
@@ -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),