From: David Brownell Date: Tue, 9 Jan 2007 23:15:47 +0000 (-0800) Subject: ARM: OMAP: Fix section mismatch warnings in omap-rng X-Git-Tag: v2.6.21-omap1~180 X-Git-Url: http://pilppa.com/gitweb/?a=commitdiff_plain;h=41587a24fe89226050066ce28241d25044ad2565;p=linux-2.6-omap-h63xx.git 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 --- 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)