diff options
Diffstat (limited to 'drivers/crypto')
-rw-r--r-- | drivers/crypto/n2_core.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/drivers/crypto/n2_core.c b/drivers/crypto/n2_core.c index b99c38f23d61..26af2dd5d831 100644 --- a/drivers/crypto/n2_core.c +++ b/drivers/crypto/n2_core.c | |||
@@ -2247,20 +2247,20 @@ static struct of_platform_driver n2_mau_driver = { | |||
2247 | 2247 | ||
2248 | static int __init n2_init(void) | 2248 | static int __init n2_init(void) |
2249 | { | 2249 | { |
2250 | int err = of_register_driver(&n2_crypto_driver, &of_bus_type); | 2250 | int err = of_register_platform_driver(&n2_crypto_driver); |
2251 | 2251 | ||
2252 | if (!err) { | 2252 | if (!err) { |
2253 | err = of_register_driver(&n2_mau_driver, &of_bus_type); | 2253 | err = of_register_platform_driver(&n2_mau_driver); |
2254 | if (err) | 2254 | if (err) |
2255 | of_unregister_driver(&n2_crypto_driver); | 2255 | of_unregister_platform_driver(&n2_crypto_driver); |
2256 | } | 2256 | } |
2257 | return err; | 2257 | return err; |
2258 | } | 2258 | } |
2259 | 2259 | ||
2260 | static void __exit n2_exit(void) | 2260 | static void __exit n2_exit(void) |
2261 | { | 2261 | { |
2262 | of_unregister_driver(&n2_mau_driver); | 2262 | of_unregister_platform_driver(&n2_mau_driver); |
2263 | of_unregister_driver(&n2_crypto_driver); | 2263 | of_unregister_platform_driver(&n2_crypto_driver); |
2264 | } | 2264 | } |
2265 | 2265 | ||
2266 | module_init(n2_init); | 2266 | module_init(n2_init); |