Source
125
125
}, {
126
126
.compatible = "atmel,at91sam9g45-ssc",
127
127
.data = &at91sam9g45_config,
128
128
}, {
129
129
/* sentinel */
130
130
}
131
131
};
132
132
MODULE_DEVICE_TABLE(of, atmel_ssc_dt_ids);
133
133
#endif
134
134
135
-
static inline const struct atmel_ssc_platform_data * __init
135
+
static inline const struct atmel_ssc_platform_data *
136
136
atmel_ssc_get_driver_data(struct platform_device *pdev)
137
137
{
138
138
if (pdev->dev.of_node) {
139
139
const struct of_device_id *match;
140
140
match = of_match_node(atmel_ssc_dt_ids, pdev->dev.of_node);
141
141
if (match == NULL)
142
142
return NULL;
143
143
return match->data;
144
144
}
145
145