rtc: ftrtc010: Use platform_get_irq() to get the interrupt
[linux-2.6-microblaze.git] / drivers / rtc / rtc-mcp795.c
index bad7792..0d515b3 100644 (file)
@@ -430,12 +430,19 @@ static const struct of_device_id mcp795_of_match[] = {
 MODULE_DEVICE_TABLE(of, mcp795_of_match);
 #endif
 
+static const struct spi_device_id mcp795_spi_ids[] = {
+       { .name = "mcp795" },
+       { }
+};
+MODULE_DEVICE_TABLE(spi, mcp795_spi_ids);
+
 static struct spi_driver mcp795_driver = {
                .driver = {
                                .name = "rtc-mcp795",
                                .of_match_table = of_match_ptr(mcp795_of_match),
                },
                .probe = mcp795_probe,
+               .id_table = mcp795_spi_ids,
 };
 
 module_spi_driver(mcp795_driver);