mirror of
https://github.com/torvalds/linux.git
synced 2026-09-22 20:54:03 +02:00
mtd: nand: realtek-ecc: add missing MODULE_DEVICE_TABLE()
The Realtek external ECC engine driver has an OF match table wired into
its platform driver, but the table is not exported with
MODULE_DEVICE_TABLE().
When the driver is built as a module, the missing OF module alias
prevents automatic module loading from the compatible string.
Add the missing MODULE_DEVICE_TABLE() entry.
Fixes: 3148d0e5b1 ("mtd: nand: realtek-ecc: Add Realtek external ECC engine support")
Cc: stable@vger.kernel.org
Signed-off-by: Pengpeng Hou <pengpeng@iscas.ac.cn>
Signed-off-by: Miquel Raynal <miquel.raynal@bootlin.com>
This commit is contained in:
parent
69e3c504e1
commit
5b2444b4d5
|
|
@ -450,6 +450,7 @@ static const struct of_device_id rtl_ecc_of_ids[] = {
|
|||
},
|
||||
{ /* sentinel */ },
|
||||
};
|
||||
MODULE_DEVICE_TABLE(of, rtl_ecc_of_ids);
|
||||
|
||||
static struct platform_driver rtl_ecc_driver = {
|
||||
.driver = {
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user