From 41587a24fe89226050066ce28241d25044ad2565 Mon Sep 17 00:00:00 2001 From: David Brownell Date: Tue, 9 Jan 2007 15:15:47 -0800 Subject: [PATCH] ARM: OMAP: Fix section mismatch warnings in omap-rng Keep omap_rng_probe() out of its platform_driver, addressing a section mismatch problem. Signed-off-by: David Brownell Signed-off-by: Tony Lindgren --- drivers/char/hw_random/omap-rng.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/char/hw_random/omap-rng.c b/drivers/char/hw_random/omap-rng.c index e13dd1892bf..773d8a87510 100644 --- a/drivers/char/hw_random/omap-rng.c +++ b/drivers/char/hw_random/omap-rng.c @@ -179,7 +179,6 @@ static struct platform_driver omap_rng_driver = { .name = "omap_rng", .owner = THIS_MODULE, }, - .probe = omap_rng_probe, .remove = __exit_p(omap_rng_remove), .suspend = omap_rng_suspend, .resume = omap_rng_resume @@ -190,7 +189,7 @@ static int __init omap_rng_init(void) if (!cpu_is_omap16xx() && !cpu_is_omap24xx()) return -ENODEV; - return platform_driver_register(&omap_rng_driver); + return platform_driver_probe(&omap_rng_driver, omap_rng_probe); } static void __exit omap_rng_exit(void) -- 2.41.1