Skip to content

Commit 994c4e1

Browse files
mvduinRobertCNelson
authored andcommitted
add compatible-strings to uio_pdrv_genirq
"uio" for generic use "ti,pruss-shmem" for backwards compatibility the of_id module parameter is still supported to add another id
1 parent 017e144 commit 994c4e1

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

drivers/uio/uio_pdrv_genirq.c

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -259,11 +259,13 @@ static const struct dev_pm_ops uio_pdrv_genirq_dev_pm_ops = {
259259

260260
#ifdef CONFIG_OF
261261
static struct of_device_id uio_of_genirq_match[] = {
262+
{ .compatible = "uio" },
263+
{ .compatible = "ti,pruss-shmem" },
262264
{ /* This is filled with module_parm */ },
263265
{ /* Sentinel */ },
264266
};
265267
MODULE_DEVICE_TABLE(of, uio_of_genirq_match);
266-
module_param_string(of_id, uio_of_genirq_match[0].compatible, 128, 0);
268+
module_param_string(of_id, uio_of_genirq_match[2].compatible, 128, 0);
267269
MODULE_PARM_DESC(of_id, "Openfirmware id of the device to be handled by uio");
268270
#endif
269271

0 commit comments

Comments
 (0)