From patchwork Sun Sep 29 05:32:04 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Hanjun Guo X-Patchwork-Id: 20686 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-ye0-f200.google.com (mail-ye0-f200.google.com [209.85.213.200]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id EC36D24687 for ; Sun, 29 Sep 2013 05:40:46 +0000 (UTC) Received: by mail-ye0-f200.google.com with SMTP id r5sf3813297yen.7 for ; Sat, 28 Sep 2013 22:40:46 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=mime-version:x-gm-message-state:delivered-to:from:to:cc:subject :date:message-id:in-reply-to:references:x-original-sender :x-original-authentication-results:precedence:mailing-list:list-id :list-post:list-help:list-archive:list-unsubscribe; bh=o/UasCzuW3N51HbXb8/BOn0szUbhnhRcu+oM1d25Mo0=; b=kcK8SLXPeknwKip+tdPpT+lzdPm8Irrs04RqBBTVCJJyQGYUtE4DwFrx1dqDkUnU+m pBeoy1kO9n5EJi+t97ifzEK1m1xWurUzcoCDIeDr8jXzUVTCAeYUm/eLGzuJID6Jydae i+U/skDuOPEBw0RoWCUiY08rxjXlzZ0LEDV+tbhLP28FjpDmCSYXchcMx7JYnKN007Q+ YGMcuTa+WOq2XqtOFUrEUhyUrBPth3jHK/5Xk0a9ooA8GLrOD1FWcQnXrv3jqwrJAhun TeCUpOnN8h2qDgJNMAOPXX3+uY5IHB/8HoGZBOGn0+aeEtc4jVyhQQEPcRU0vAF/G9vE gZrw== X-Received: by 10.224.5.5 with SMTP id 5mr4911309qat.4.1380433246780; Sat, 28 Sep 2013 22:40:46 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.49.50.225 with SMTP id f1ls1672366qeo.66.gmail; Sat, 28 Sep 2013 22:40:46 -0700 (PDT) X-Received: by 10.58.146.71 with SMTP id ta7mr347251veb.23.1380433246713; Sat, 28 Sep 2013 22:40:46 -0700 (PDT) Received: from mail-vb0-f53.google.com (mail-vb0-f53.google.com [209.85.212.53]) by mx.google.com with ESMTPS id ta3si4153097vcb.146.1969.12.31.16.00.00 (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Sat, 28 Sep 2013 22:40:46 -0700 (PDT) Received-SPF: neutral (google.com: 209.85.212.53 is neither permitted nor denied by best guess record for domain of patch+caf_=patchwork-forward=linaro.org@linaro.org) client-ip=209.85.212.53; Received: by mail-vb0-f53.google.com with SMTP id i3so2871683vbh.26 for ; Sat, 28 Sep 2013 22:40:16 -0700 (PDT) X-Gm-Message-State: ALoCoQlg/MUeRFgS0uatw/fUh3zQkANiAz2rTDDvqUvz314kC1dioJkEbzbDSABgI+C2YhsL3PGS X-Received: by 10.52.65.136 with SMTP id x8mr13134273vds.23.1380433216622; Sat, 28 Sep 2013 22:40:16 -0700 (PDT) X-Forwarded-To: patchwork-forward@linaro.org X-Forwarded-For: patch@linaro.org patchwork-forward@linaro.org Delivered-To: patches@linaro.org Received: by 10.220.174.196 with SMTP id u4csp39603vcz; Sat, 28 Sep 2013 22:40:16 -0700 (PDT) X-Received: by 10.68.213.167 with SMTP id nt7mr943067pbc.140.1380433215749; Sat, 28 Sep 2013 22:40:15 -0700 (PDT) Received: from hanjun-Latitude-D630.domain ([218.17.215.175]) by mx.google.com with ESMTPS id rr7si13704317pbc.135.1969.12.31.16.00.00 (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Sat, 28 Sep 2013 22:40:15 -0700 (PDT) Received-SPF: neutral (google.com: 218.17.215.175 is neither permitted nor denied by best guess record for domain of hanjun@hanjun-latitude-d630.domain) client-ip=218.17.215.175; Received: from hanjun-Latitude-D630 (localhost [127.0.0.1]) by hanjun-Latitude-D630.domain (8.14.4/8.14.4/Debian-2ubuntu2) with ESMTP id r8T5ctR7007322; Sun, 29 Sep 2013 13:38:55 +0800 Received: (from hanjun@localhost) by hanjun-Latitude-D630 (8.14.4/8.14.4/Submit) id r8T5csHQ007320; Sun, 29 Sep 2013 13:38:54 +0800 From: Hanjun Guo To: Tomi Valkeinen , Jean-Christophe Plagniol-Villard Cc: linux-fbdev@vger.kernel.org, linux-kernel@vger.kernel.org, patches@linaro.org, linaro-kernel@lists.linaro.org, linaro-acpi@lists.linaro.org, Hanjun Guo Subject: [PATCH 04/10] Video / jz4740_fb: Use module_platform_driver() to simplify code Date: Sun, 29 Sep 2013 13:32:04 +0800 Message-Id: <1380432730-7263-5-git-send-email-hanjun.guo@linaro.org> X-Mailer: git-send-email 1.7.9.5 In-Reply-To: <1380432730-7263-1-git-send-email-hanjun.guo@linaro.org> References: <1380432730-7263-1-git-send-email-hanjun.guo@linaro.org> X-Removed-Original-Auth: Dkim didn't pass. X-Original-Sender: hanjun.guo@linaro.org X-Original-Authentication-Results: mx.google.com; spf=neutral (google.com: 209.85.212.53 is neither permitted nor denied by best guess record for domain of patch+caf_=patchwork-forward=linaro.org@linaro.org) smtp.mail=patch+caf_=patchwork-forward=linaro.org@linaro.org Precedence: list Mailing-list: list patchwork-forward@linaro.org; contact patchwork-forward+owners@linaro.org List-ID: X-Google-Group-Id: 836684582541 List-Post: , List-Help: , List-Archive: List-Unsubscribe: , Convert to module_platform_driver() to simplify code. Signed-off-by: Hanjun Guo --- drivers/video/jz4740_fb.c | 13 +------------ 1 file changed, 1 insertion(+), 12 deletions(-) diff --git a/drivers/video/jz4740_fb.c b/drivers/video/jz4740_fb.c index 2c49112..c5ec188 100644 --- a/drivers/video/jz4740_fb.c +++ b/drivers/video/jz4740_fb.c @@ -798,18 +798,7 @@ static struct platform_driver jzfb_driver = { .pm = JZFB_PM_OPS, }, }; - -static int __init jzfb_init(void) -{ - return platform_driver_register(&jzfb_driver); -} -module_init(jzfb_init); - -static void __exit jzfb_exit(void) -{ - platform_driver_unregister(&jzfb_driver); -} -module_exit(jzfb_exit); +module_platform_driver(jzfb_driver); MODULE_LICENSE("GPL"); MODULE_AUTHOR("Lars-Peter Clausen ");