Skip to contentSkip to conversation

crypto: sahara: fix building as module

PATCH New Arnd Bergmann 2 participants 2 messages Jun 3, 2013 – Jun 5, 2013 Crypto API

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 crypto: sahara: fix building as module

The sahara crypto driver has an incorrect MODULE_DEVICE_TABLE, which prevents us from actually building this driver as a loadable module.

sahara_dt_ids is a of_device_id array, so we have to use MODULE_DEVICE_TABLE(of, ...).

Cc Javier Martin <[email protected]>
Cc Herbert Xu <[email protected]>
drivers/crypto/sahara.c +1 -1
index a97bb6c..c3dc1c0 100644
@@ -863,7 +863,7 @@ static struct of_device_id sahara_dt_ids[] = {
 	{ .compatible = "fsl,imx27-sahara" },
 	{ /* sentinel */ }
 };
-MODULE_DEVICE_TABLE(platform, sahara_dt_ids);
+MODULE_DEVICE_TABLE(of, sahara_dt_ids);
 
 static int sahara_probe(struct platform_device *pdev)
 {
maintainer
#1 lore raw

PATCH 1/1 crypto: sahara: fix building as module

Quoted 9 lines · Arnd Bergmann

The sahara crypto driver has an incorrect MODULE_DEVICE_TABLE, which prevents us from actually building this driver as a loadable module.

sahara_dt_ids is a of_device_id array, so we have to use MODULE_DEVICE_TABLE(of, ...).

Cc Javier Martin <[email protected]>
Cc Herbert Xu <[email protected]>

Patch applied to crypto. 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