Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

Sachin Kamat and committed by
Greg Kroah-Hartman
cee4fbd6 9049f793

+1 -4
+1 -4
drivers/uio/uio_pdrv_genirq.c
··· 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 = { ··· 282 285 .name = DRIVER_NAME, 283 286 .owner = THIS_MODULE, 284 287 .pm = &uio_pdrv_genirq_dev_pm_ops, 285 - .of_match_table = uio_of_genirq_match, 288 + .of_match_table = of_match_ptr(uio_of_genirq_match), 286 289 }, 287 290 }; 288 291