From patchwork Wed Oct 10 18:38:44 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Srinivas KANDAGATLA X-Patchwork-Id: 1575491 Return-Path: X-Original-To: patchwork-linux-fbdev@patchwork.kernel.org Delivered-To: patchwork-process-083081@patchwork1.kernel.org Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by patchwork1.kernel.org (Postfix) with ESMTP id B4B2C3FE36 for ; Wed, 10 Oct 2012 18:40:39 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756453Ab2JJSkj (ORCPT ); Wed, 10 Oct 2012 14:40:39 -0400 Received: from eu1sys200aog101.obsmtp.com ([207.126.144.111]:53055 "EHLO eu1sys200aog101.obsmtp.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1756645Ab2JJSki (ORCPT ); Wed, 10 Oct 2012 14:40:38 -0400 Received: from beta.dmz-eu.st.com ([164.129.1.35]) (using TLSv1) by eu1sys200aob101.postini.com ([207.126.147.11]) with SMTP ID DSNKUHXA/RMsHfqOPT/BIolnS8A5cYhJFKRl@postini.com; Wed, 10 Oct 2012 18:40:38 UTC Received: from zeta.dmz-eu.st.com (zeta.dmz-eu.st.com [164.129.230.9]) by beta.dmz-eu.st.com (STMicroelectronics) with ESMTP id E911C1E0; Wed, 10 Oct 2012 18:39:55 +0000 (GMT) Received: from mail7.sgp.st.com (mail7.sgp.st.com [164.129.223.81]) by zeta.dmz-eu.st.com (STMicroelectronics) with ESMTP id 803D9265E; Wed, 10 Oct 2012 18:39:55 +0000 (GMT) Received: from localhost (king.bri.st.com [10.65.51.147]) by mail7.sgp.st.com (MOS 4.3.3-GA) with ESMTP id APB71339 (AUTH srinivak); Wed, 10 Oct 2012 20:39:54 +0200 From: Srinivas KANDAGATLA To: FlorianSchandinat@gmx.de Cc: srinivas.kandagatla@st.com, source@embeddedalley.com, klessard@sunrisetelecom.com, c.pellegrin@exadron.com, linux-fbdev@vger.kernel.org, pjones@redhat.com, hennerich@blackfin.uclinux.org, jkosina@suse.cz, jayakumar.lkml@gmail.com, paul.gortmaker@windriver.com, hsweeten@visionengravers.com, kristoffer@gaisler.com, lars@metafoo.de Subject: [PATCH 3.6.0- 07/13] video/cobalt_lcdfb: use module_platform_driver macro Date: Wed, 10 Oct 2012 19:38:44 +0100 Message-Id: <1349894324-9428-1-git-send-email-srinivas.kandagatla@st.com> X-Mailer: git-send-email 1.7.0.4 Sender: linux-fbdev-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-fbdev@vger.kernel.org From: Srinivas Kandagatla This patch removes some code duplication by using module_platform_driver. Signed-off-by: Srinivas Kandagatla --- drivers/video/cobalt_lcdfb.c | 14 +------------- 1 files changed, 1 insertions(+), 13 deletions(-) diff --git a/drivers/video/cobalt_lcdfb.c b/drivers/video/cobalt_lcdfb.c index eae46f6..9d43f1c 100644 --- a/drivers/video/cobalt_lcdfb.c +++ b/drivers/video/cobalt_lcdfb.c @@ -396,19 +396,7 @@ static struct platform_driver cobalt_lcdfb_driver = { .owner = THIS_MODULE, }, }; - -static int __init cobalt_lcdfb_init(void) -{ - return platform_driver_register(&cobalt_lcdfb_driver); -} - -static void __exit cobalt_lcdfb_exit(void) -{ - platform_driver_unregister(&cobalt_lcdfb_driver); -} - -module_init(cobalt_lcdfb_init); -module_exit(cobalt_lcdfb_exit); +module_platform_driver(cobalt_lcdfb_driver); MODULE_LICENSE("GPL v2"); MODULE_AUTHOR("Yoichi Yuasa");