2015-05-21 19:32:46 +00:00
|
|
|
--- a/arch/mips/alchemy/devboards/db1300.c
|
|
|
|
+++ b/arch/mips/alchemy/devboards/db1300.c
|
|
|
|
@@ -712,6 +712,7 @@ static struct platform_device db1300_lcd
|
2016-09-15 19:16:34 +00:00
|
|
|
|
2015-03-10 11:03:04 +00:00
|
|
|
/**********************************************************************/
|
2016-09-15 19:16:34 +00:00
|
|
|
|
2015-03-10 11:03:04 +00:00
|
|
|
+#ifdef CONFIG_TOUCHSCREEN_WM97XX
|
|
|
|
static void db1300_wm97xx_irqen(struct wm97xx *wm, int enable)
|
|
|
|
{
|
2016-09-15 19:16:34 +00:00
|
|
|
if (enable)
|
2015-05-21 19:32:46 +00:00
|
|
|
@@ -744,6 +745,15 @@ static int db1300_wm97xx_probe(struct pl
|
2016-09-15 19:16:34 +00:00
|
|
|
return wm97xx_register_mach_ops(wm, &db1300_wm97xx_ops);
|
2015-03-10 11:03:04 +00:00
|
|
|
}
|
2016-09-15 19:16:34 +00:00
|
|
|
|
2015-03-10 11:03:04 +00:00
|
|
|
+#else
|
|
|
|
+
|
|
|
|
+static int db1300_wm97xx_probe(struct platform_device *pdev)
|
|
|
|
+{
|
|
|
|
+ return -1;
|
|
|
|
+}
|
|
|
|
+
|
|
|
|
+#endif
|
|
|
|
+
|
|
|
|
static struct platform_driver db1300_wm97xx_driver = {
|
2016-09-15 19:16:34 +00:00
|
|
|
.driver.name = "wm97xx-touch",
|
|
|
|
.driver.owner = THIS_MODULE,
|