.. | .. |
---|
11 | 11 | #include <linux/gpio/driver.h> |
---|
12 | 12 | #include <linux/interrupt.h> |
---|
13 | 13 | #include <linux/io.h> |
---|
| 14 | +#include <linux/kernel.h> |
---|
14 | 15 | #include <linux/of_device.h> |
---|
15 | 16 | #include <linux/of_irq.h> |
---|
16 | 17 | #include <linux/of_platform.h> |
---|
.. | .. |
---|
2826 | 2827 | return 0; |
---|
2827 | 2828 | } |
---|
2828 | 2829 | |
---|
| 2830 | +#define IF_ENABLED(cfg, ptr) PTR_IF(IS_ENABLED(cfg), (ptr)) |
---|
| 2831 | + |
---|
2829 | 2832 | static const struct of_device_id ingenic_pinctrl_of_match[] = { |
---|
2830 | 2833 | { .compatible = "ingenic,jz4740-pinctrl", .data = &jz4740_chip_info }, |
---|
2831 | 2834 | { .compatible = "ingenic,jz4725b-pinctrl", .data = &jz4725b_chip_info }, |
---|