From b3b7e9640b4d7a4c857b6db938f4609ac25925a0 Mon Sep 17 00:00:00 2001 From: Jianxiong Pan Date: Mon, 27 Aug 2018 18:51:16 +0800 Subject: [PATCH] modpost: eliminate the section mismatches warning PD#172419: found 3 section mismatches Change-Id: I886c06b7ebd17cb463ade5bc66f82c1c09400431 Signed-off-by: Jianxiong Pan --- drivers/amlogic/memory_ext/ram_dump.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/drivers/amlogic/memory_ext/ram_dump.c b/drivers/amlogic/memory_ext/ram_dump.c index 3a836c4..5f242c1 100644 --- a/drivers/amlogic/memory_ext/ram_dump.c +++ b/drivers/amlogic/memory_ext/ram_dump.c @@ -259,7 +259,7 @@ void ramdump_sync_data(void) } #endif -static int ramdump_probe(struct platform_device *pdev) +static int __init ramdump_probe(struct platform_device *pdev) { void __iomem *p; @@ -333,7 +333,6 @@ static struct platform_driver ramdump_driver = { .of_match_table = ramdump_dt_match, #endif }, - .probe = ramdump_probe, .remove = ramdump_remove, }; @@ -341,7 +340,7 @@ static int __init ramdump_init(void) { int ret; - ret = platform_driver_register(&ramdump_driver); + ret = platform_driver_probe(&ramdump_driver, ramdump_probe); return ret; } -- 2.7.4