[PATCH] block: swim3: Publish the MacIO OF module aliases

hpp.iscas posted 1 patch 2 weeks, 6 days ago
drivers/block/swim3.c | 1 +
1 file changed, 1 insertion(+)
[PATCH] block: swim3: Publish the MacIO OF module aliases
Posted by hpp.iscas 2 weeks, 6 days ago
The SWIM3 driver registers swim3_match with the MacIO bus. MacIO emits
OF modalias events, but this module only has a block-major alias. The
block-major alias does not describe the OF devices in the match table.

Publish the existing OF IDs while retaining block-major loading.

Fixes: 3e9a69275f23 ("[POWERPC] Update the SWIM3 (powermac) floppy driver")
Signed-off-by: hpp.iscas <hppiscas@163.com>
---
 drivers/block/swim3.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/drivers/block/swim3.c b/drivers/block/swim3.c
index d4f0d43..fe6f3b9 100644
--- a/drivers/block/swim3.c
+++ b/drivers/block/swim3.c
@@ -1262,6 +1262,7 @@ static const struct of_device_id swim3_match[] =
 	},
 	{ /* end of list */ }
 };
+MODULE_DEVICE_TABLE(of, swim3_match);
 
 static struct macio_driver swim3_driver =
 {