Pratik Patel | 5f6d1af | 2012-06-13 15:48:13 -0700 | [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 | #ifndef __LINUX_OF_CORESIGHT_H |
| 14 | #define __LINUX_OF_CORESIGHT_H |
| 15 | |
| 16 | #ifdef CONFIG_OF |
| 17 | extern struct coresight_platform_data *of_get_coresight_platform_data( |
| 18 | struct device *dev, struct device_node *node); |
| 19 | #else |
| 20 | static inline struct coresight_platform_data *of_get_coresight_platform_data( |
| 21 | struct device *dev, struct device_node *node) |
| 22 | { |
| 23 | return NULL; |
| 24 | } |
| 25 | #endif |
| 26 | |
| 27 | #endif |