Michael Bohan | 86e30dc | 2012-01-05 14:16:43 -0800 | [diff] [blame] | 1 | /* Copyright (c) 2012, Code Aurora Forum. All rights reserved. |
| 2 | * |
| 3 | * This program is free software; you can redistribute it and/or modify |
| 4 | * it under the terms of the GNU General Public License version 2 and |
| 5 | * only version 2 as published by the Free Software Foundation. |
| 6 | * |
| 7 | * This program is distributed in the hope that it will be useful, |
| 8 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 9 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 10 | * GNU General Public License for more details. |
| 11 | */ |
| 12 | |
| 13 | #include <linux/spmi.h> |
| 14 | #include <linux/of_irq.h> |
| 15 | |
| 16 | #ifdef CONFIG_OF_SPMI |
| 17 | int of_spmi_register_devices(struct spmi_controller *ctrl); |
| 18 | #else |
| 19 | static int of_spmi_register_devices(struct spmi_controller *ctrl) |
| 20 | { |
| 21 | return -ENXIO; |
| 22 | } |
| 23 | #endif /* CONFIG_OF_SPMI */ |