diff options
Diffstat (limited to 'drivers/crypto/omap-aes.c')
-rw-r--r-- | drivers/crypto/omap-aes.c | 15 |
1 files changed, 2 insertions, 13 deletions
diff --git a/drivers/crypto/omap-aes.c b/drivers/crypto/omap-aes.c index 6aa425fe0ed5..ee15b0f7849a 100644 --- a/drivers/crypto/omap-aes.c +++ b/drivers/crypto/omap-aes.c | |||
@@ -636,7 +636,7 @@ static void omap_aes_finish_req(struct omap_aes_dev *dd, int err) | |||
636 | 636 | ||
637 | pr_debug("err: %d\n", err); | 637 | pr_debug("err: %d\n", err); |
638 | 638 | ||
639 | pm_runtime_put_sync(dd->dev); | 639 | pm_runtime_put(dd->dev); |
640 | dd->flags &= ~FLAGS_BUSY; | 640 | dd->flags &= ~FLAGS_BUSY; |
641 | 641 | ||
642 | req->base.complete(&req->base, err); | 642 | req->base.complete(&req->base, err); |
@@ -1248,18 +1248,7 @@ static struct platform_driver omap_aes_driver = { | |||
1248 | }, | 1248 | }, |
1249 | }; | 1249 | }; |
1250 | 1250 | ||
1251 | static int __init omap_aes_mod_init(void) | 1251 | module_platform_driver(omap_aes_driver); |
1252 | { | ||
1253 | return platform_driver_register(&omap_aes_driver); | ||
1254 | } | ||
1255 | |||
1256 | static void __exit omap_aes_mod_exit(void) | ||
1257 | { | ||
1258 | platform_driver_unregister(&omap_aes_driver); | ||
1259 | } | ||
1260 | |||
1261 | module_init(omap_aes_mod_init); | ||
1262 | module_exit(omap_aes_mod_exit); | ||
1263 | 1252 | ||
1264 | MODULE_DESCRIPTION("OMAP AES hw acceleration support."); | 1253 | MODULE_DESCRIPTION("OMAP AES hw acceleration support."); |
1265 | MODULE_LICENSE("GPL v2"); | 1254 | MODULE_LICENSE("GPL v2"); |