Commit 47625846 authored by Vivian Wang's avatar Vivian Wang Committed by Greg Kroah-Hartman
Browse files

uio: uio_pdrv_genirq: Remove MODULE_DEVICE_TABLE



The struct of_device_id list here is filled in at load time since
commit 05c3e0bb ("UIO: allow binding uio_pdrv_genirq.c to devices using
command line option").

However, this does not work with MODULE_DEVICE_TABLE, which generates an
alias at build time.  In this case, it generates the aliases "of:N*T*"
and "of:N*T*C*", which matches *any* OF device node, which is obviously
not intended. It confuses userspace into loading this module for any OF
device, and confuses anyone trying to resolve an OF modalias.

Remove this broken MODULE_DEVICE_TABLE.

Suggested-by: default avatarEmily <hello@emily.moe>
Fixes: 05c3e0bb ("UIO: allow binding uio_pdrv_genirq.c to devices using command line option")
Signed-off-by: default avatarVivian Wang <wangruikang@iscas.ac.cn>
Link: https://lore.kernel.org/r/20250826-uio-no-modalias-v2-1-495afa9e8a5b@iscas.ac.cn


Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 511d7a35
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment