006-codec.patch 688 B

1234567891011121314151617181920212223242526
  1. --- a/arch/mips/alchemy/devboards/db1300.c
  2. +++ b/arch/mips/alchemy/devboards/db1300.c
  3. @@ -712,6 +712,7 @@ static struct platform_device db1300_lcd
  4. /**********************************************************************/
  5. +#ifdef CONFIG_TOUCHSCREEN_WM97XX
  6. static void db1300_wm97xx_irqen(struct wm97xx *wm, int enable)
  7. {
  8. if (enable)
  9. @@ -744,6 +745,15 @@ static int db1300_wm97xx_probe(struct pl
  10. return wm97xx_register_mach_ops(wm, &db1300_wm97xx_ops);
  11. }
  12. +#else
  13. +
  14. +static int db1300_wm97xx_probe(struct platform_device *pdev)
  15. +{
  16. + return -1;
  17. +}
  18. +
  19. +#endif
  20. +
  21. static struct platform_driver db1300_wm97xx_driver = {
  22. .driver.name = "wm97xx-touch",
  23. .driver.owner = THIS_MODULE,