Commit 2930d497 authored by Kim Phillips's avatar Kim Phillips Committed by Herbert Xu

crypto: caam - platform_bus_type migration

this fixes a build error since cryptodev-2.6 got rebased
to include commit d714d197
"dt: eliminate of_platform_driver shim code".
Signed-off-by: default avatarKim Phillips <kim.phillips@freescale.com>
Signed-off-by: default avatarHerbert Xu <herbert@gondor.apana.org.au>
parent 9bed4aca
...@@ -44,8 +44,7 @@ static int caam_remove(struct platform_device *pdev) ...@@ -44,8 +44,7 @@ static int caam_remove(struct platform_device *pdev)
} }
/* Probe routine for CAAM top (controller) level */ /* Probe routine for CAAM top (controller) level */
static int caam_probe(struct platform_device *pdev, static int caam_probe(struct platform_device *pdev)
const struct of_device_id *devmatch)
{ {
int d, ring, rspec; int d, ring, rspec;
struct device *dev; struct device *dev;
...@@ -242,7 +241,7 @@ static struct of_device_id caam_match[] = { ...@@ -242,7 +241,7 @@ static struct of_device_id caam_match[] = {
}; };
MODULE_DEVICE_TABLE(of, caam_match); MODULE_DEVICE_TABLE(of, caam_match);
static struct of_platform_driver caam_driver = { static struct platform_driver caam_driver = {
.driver = { .driver = {
.name = "caam", .name = "caam",
.owner = THIS_MODULE, .owner = THIS_MODULE,
...@@ -254,12 +253,12 @@ static struct of_platform_driver caam_driver = { ...@@ -254,12 +253,12 @@ static struct of_platform_driver caam_driver = {
static int __init caam_base_init(void) static int __init caam_base_init(void)
{ {
return of_register_platform_driver(&caam_driver); return platform_driver_register(&caam_driver);
} }
static void __exit caam_base_exit(void) static void __exit caam_base_exit(void)
{ {
return of_unregister_platform_driver(&caam_driver); return platform_driver_unregister(&caam_driver);
} }
module_init(caam_base_init); module_init(caam_base_init);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment