lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <1474031110-6875-1-git-send-email-weiyj.lk@gmail.com>
Date:   Fri, 16 Sep 2016 13:05:10 +0000
From:   Wei Yongjun <weiyj.lk@...il.com>
To:     Alexandre Belloni <alexandre.belloni@...e-electrons.com>,
        LABBE Corentin <clabbe.montjoie@...il.com>,
        Nicolas Ferre <nicolas.ferre@...el.com>,
        Paul Gortmaker <paul.gortmaker@...driver.com>
Cc:     Wei Yongjun <weiyongjun1@...wei.com>, linux-kernel@...r.kernel.org
Subject: [PATCH -next] memory: atmel-sdramc: use builtin_platform_driver to simplify the code

From: Wei Yongjun <weiyongjun1@...wei.com>

Use the builtin_platform_driver() macro to make the code simpler.

Signed-off-by: Wei Yongjun <weiyongjun1@...wei.com>
---
 drivers/memory/atmel-sdramc.c | 6 +-----
 1 file changed, 1 insertion(+), 5 deletions(-)

diff --git a/drivers/memory/atmel-sdramc.c b/drivers/memory/atmel-sdramc.c
index 12080b0..b418b39 100644
--- a/drivers/memory/atmel-sdramc.c
+++ b/drivers/memory/atmel-sdramc.c
@@ -85,8 +85,4 @@ static struct platform_driver atmel_ramc_driver = {
 	},
 };
 
-static int __init atmel_ramc_init(void)
-{
-	return platform_driver_register(&atmel_ramc_driver);
-}
-device_initcall(atmel_ramc_init);
+builtin_platform_driver(atmel_ramc_driver);



Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ