Skip to contentSkip to conversation

crypto: nx842: add missing MODULE_DEVICE_TABLE

PATCH In review Bixuan Cui 2 participants 2 messages May 8, 2021 – May 14, 2021

Subsystems (4)
lore
Share & tools
lore

Bixuan Cui

author
#0 lore raw

PATCH 1/1 crypto: nx842: add missing MODULE_DEVICE_TABLE

This patch adds missing MODULE_DEVICE_TABLE definition which generates correct modalias for automatic loading of this driver when it is built as an external module.

---
 drivers/crypto/nx/nx-842-pseries.c | 1 +
 1 file changed, 1 insertion(+)
drivers/crypto/nx/nx-842-pseries.c +1 -0
index cc8dd3072b8b..8ee547ee378e 100644
@@ -1069,6 +1069,7 @@ static const struct vio_device_id nx842_vio_driver_ids[] = {
 	{"ibm,compression-v1", "ibm,compression"},
 	{"", ""},
 };
+MODULE_DEVICE_TABLE(vio, nx842_vio_driver_ids);
 
 static struct vio_driver nx842_vio_driver = {
 	.name = KBUILD_MODNAME,
maintainer
#1 lore raw
Quoted 9 lines · Bixuan Cui

This patch adds missing MODULE_DEVICE_TABLE definition which generates correct modalias for automatic loading of this driver when it is built as an external module.

---
 drivers/crypto/nx/nx-842-pseries.c | 1 +
 1 file changed, 1 insertion(+)

Patch applied. Thanks.

Signature · 3 lines
Email: Herbert Xu <[email protected]>
Home Page: http://gondor.apana.org.au/~herbert/
PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt