au1000: build fails if the input layer is not selected
[openwrt-working-2016/.git] / target / linux / au1000 / patches / 006-codec.patch
1 Index: linux-3.18.8/arch/mips/alchemy/devboards/db1300.c
2 ===================================================================
3 --- linux-3.18.8.orig/arch/mips/alchemy/devboards/db1300.c      2015-02-27 02:49:36.000000000 +0100
4 +++ linux-3.18.8/arch/mips/alchemy/devboards/db1300.c   2015-03-10 11:36:47.906310432 +0100
5 @@ -712,6 +712,7 @@
6  
7  /**********************************************************************/
8  
9 +#ifdef CONFIG_TOUCHSCREEN_WM97XX
10  static void db1300_wm97xx_irqen(struct wm97xx *wm, int enable)
11  {
12         if (enable)
13 @@ -744,6 +745,15 @@
14         return wm97xx_register_mach_ops(wm, &db1300_wm97xx_ops);
15  }
16  
17 +#else
18 +
19 +static int db1300_wm97xx_probe(struct platform_device *pdev)
20 +{
21 +       return -1;
22 +}
23 +
24 +#endif
25 +
26  static struct platform_driver db1300_wm97xx_driver = {
27         .driver.name    = "wm97xx-touch",
28         .driver.owner   = THIS_MODULE,