diff options
Diffstat (limited to 'drivers/crypto')
-rw-r--r-- | drivers/crypto/caam/ctrl.c | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/drivers/crypto/caam/ctrl.c b/drivers/crypto/caam/ctrl.c index 59aae4e3b54b..9009713a3c2e 100644 --- a/drivers/crypto/caam/ctrl.c +++ b/drivers/crypto/caam/ctrl.c | |||
@@ -44,8 +44,7 @@ static int caam_remove(struct platform_device *pdev) | |||
44 | } | 44 | } |
45 | 45 | ||
46 | /* Probe routine for CAAM top (controller) level */ | 46 | /* Probe routine for CAAM top (controller) level */ |
47 | static int caam_probe(struct platform_device *pdev, | 47 | static int caam_probe(struct platform_device *pdev) |
48 | const struct of_device_id *devmatch) | ||
49 | { | 48 | { |
50 | int d, ring, rspec; | 49 | int d, ring, rspec; |
51 | struct device *dev; | 50 | struct device *dev; |
@@ -242,7 +241,7 @@ static struct of_device_id caam_match[] = { | |||
242 | }; | 241 | }; |
243 | MODULE_DEVICE_TABLE(of, caam_match); | 242 | MODULE_DEVICE_TABLE(of, caam_match); |
244 | 243 | ||
245 | static struct of_platform_driver caam_driver = { | 244 | static struct platform_driver caam_driver = { |
246 | .driver = { | 245 | .driver = { |
247 | .name = "caam", | 246 | .name = "caam", |
248 | .owner = THIS_MODULE, | 247 | .owner = THIS_MODULE, |
@@ -254,12 +253,12 @@ static struct of_platform_driver caam_driver = { | |||
254 | 253 | ||
255 | static int __init caam_base_init(void) | 254 | static int __init caam_base_init(void) |
256 | { | 255 | { |
257 | return of_register_platform_driver(&caam_driver); | 256 | return platform_driver_register(&caam_driver); |
258 | } | 257 | } |
259 | 258 | ||
260 | static void __exit caam_base_exit(void) | 259 | static void __exit caam_base_exit(void) |
261 | { | 260 | { |
262 | return of_unregister_platform_driver(&caam_driver); | 261 | return platform_driver_unregister(&caam_driver); |
263 | } | 262 | } |
264 | 263 | ||
265 | module_init(caam_base_init); | 264 | module_init(caam_base_init); |