From patchwork Wed Oct 10 18:37:58 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Srinivas KANDAGATLA X-Patchwork-Id: 1575421 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 12B703FE36 for ; Wed, 10 Oct 2012 18:39:57 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756442Ab2JJSj4 (ORCPT ); Wed, 10 Oct 2012 14:39:56 -0400 Received: from eu1sys200aog119.obsmtp.com ([207.126.144.147]:52647 "EHLO eu1sys200aog119.obsmtp.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753130Ab2JJSj4 (ORCPT ); Wed, 10 Oct 2012 14:39:56 -0400 Received: from beta.dmz-eu.st.com ([164.129.1.35]) (using TLSv1) by eu1sys200aob119.postini.com ([207.126.147.11]) with SMTP ID DSNKUHXA5DN69/nXPweHBKjY0nkLpLmejoEn@postini.com; Wed, 10 Oct 2012 18:39:55 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 3B6E61D5; Wed, 10 Oct 2012 18:39:09 +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 C1C3D2652; Wed, 10 Oct 2012 18:39:08 +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 APB71302 (AUTH srinivak); Wed, 10 Oct 2012 20:39:07 +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- 02/13] video/au1200fb: use module_platform_driver macro Date: Wed, 10 Oct 2012 19:37:58 +0100 Message-Id: <1349894278-9258-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/au1200fb.c | 16 +--------------- 1 files changed, 1 insertions(+), 15 deletions(-) diff --git a/drivers/video/au1200fb.c b/drivers/video/au1200fb.c index 7ca79f0..d1127eb 100644 --- a/drivers/video/au1200fb.c +++ b/drivers/video/au1200fb.c @@ -1878,21 +1878,7 @@ static struct platform_driver au1200fb_driver = { .probe = au1200fb_drv_probe, .remove = __devexit_p(au1200fb_drv_remove), }; - -/*-------------------------------------------------------------------------*/ - -static int __init au1200fb_init(void) -{ - return platform_driver_register(&au1200fb_driver); -} - -static void __exit au1200fb_cleanup(void) -{ - platform_driver_unregister(&au1200fb_driver); -} - -module_init(au1200fb_init); -module_exit(au1200fb_cleanup); +module_platform_driver(au1200fb_driver); MODULE_DESCRIPTION(DRIVER_DESC); MODULE_LICENSE("GPL");