Commit cee4fbd6cd7608f6dad7539f39e9281125702a16
Committed by
Greg Kroah-Hartman
1 parent
9049f79321
Exists in
smarc-imx_3.14.28_1.0.0_ga
and in
1 other branch
drivers: uio_pdrv_genirq: Use of_match_ptr() macro
This eliminates having an #ifdef returning NULL for the case when OF is disabled. Signed-off-by: Sachin Kamat <sachin.kamat@linaro.org> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Showing 1 changed file with 1 additions and 4 deletions Side-by-side Diff
drivers/uio/uio_pdrv_genirq.c
... | ... | @@ -271,11 +271,8 @@ |
271 | 271 | { /* Sentinel */ }, |
272 | 272 | }; |
273 | 273 | MODULE_DEVICE_TABLE(of, uio_of_genirq_match); |
274 | - | |
275 | 274 | module_param_string(of_id, uio_of_genirq_match[0].compatible, 128, 0); |
276 | 275 | MODULE_PARM_DESC(of_id, "Openfirmware id of the device to be handled by uio"); |
277 | -#else | |
278 | -# define uio_of_genirq_match NULL | |
279 | 276 | #endif |
280 | 277 | |
281 | 278 | static struct platform_driver uio_pdrv_genirq = { |
... | ... | @@ -285,7 +282,7 @@ |
285 | 282 | .name = DRIVER_NAME, |
286 | 283 | .owner = THIS_MODULE, |
287 | 284 | .pm = &uio_pdrv_genirq_dev_pm_ops, |
288 | - .of_match_table = uio_of_genirq_match, | |
285 | + .of_match_table = of_match_ptr(uio_of_genirq_match), | |
289 | 286 | }, |
290 | 287 | }; |
291 | 288 |