From patchwork Sun Sep 29 05:32:10 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Hanjun Guo X-Patchwork-Id: 20692 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-yh0-f69.google.com (mail-yh0-f69.google.com [209.85.213.69]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id EF84124687 for ; Sun, 29 Sep 2013 05:49:09 +0000 (UTC) Received: by mail-yh0-f69.google.com with SMTP id c41sf4037409yho.4 for ; Sat, 28 Sep 2013 22:49:09 -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=2nkuInDF6WBPH2/95Cd72t9HRnGKYew8ATk9QXDKd1A=; b=YAS+MYoUwvv3hjqsrNYHWODof7UoYBAzWlBUZix6B6QOnbJcpAo7CZSsjXLUFN8Xa8 zS7fHI1nTZzHY7h48DGlV4n7a9zKiHWA9/2LKJbI+PTObBY4o7j3lAiL4XW6/pjn1K0/ HM/xs3Slqm8+L5OgHILKQvFXhUK215wdMIXuCwe8SpbRhoKmkW7VLamN8CtNh7jcmrUO r4aMVsOXwY4Fl6QP+uI4gF71uMH3q0I5aupe0yfb+JUsg0cLpOLDC83aTegXlYVnt7le 72h8u6P4tNww9OY1MIBhvDe+bmyjP416pBoFrh/xpH8b+RR4TP4g97Bsyjvj0CK/WnNG AK6A== X-Received: by 10.224.137.67 with SMTP id v3mr17790265qat.0.1380433749327; Sat, 28 Sep 2013 22:49:09 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.49.1.65 with SMTP id 1ls1652216qek.72.gmail; Sat, 28 Sep 2013 22:49:09 -0700 (PDT) X-Received: by 10.58.137.167 with SMTP id qj7mr15190736veb.1.1380433749245; Sat, 28 Sep 2013 22:49:09 -0700 (PDT) Received: from mail-vb0-x22a.google.com (mail-vb0-x22a.google.com [2607:f8b0:400c:c02::22a]) by mx.google.com with ESMTPS id b5si4165912vel.100.1969.12.31.16.00.00 (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Sat, 28 Sep 2013 22:49:09 -0700 (PDT) Received-SPF: neutral (google.com: 2607:f8b0:400c:c02::22a is neither permitted nor denied by best guess record for domain of patch+caf_=patchwork-forward=linaro.org@linaro.org) client-ip=2607:f8b0:400c:c02::22a; Received: by mail-vb0-f42.google.com with SMTP id e12so2988042vbg.29 for ; Sat, 28 Sep 2013 22:48:37 -0700 (PDT) X-Gm-Message-State: ALoCoQkxIcL/CHR+hF8PgCRrKqXmptZ+DfmGbtAKyuI1UQZtN5VPUtBye20/as4xq1WlKZLCk4m6 X-Received: by 10.58.74.38 with SMTP id q6mr15599728vev.9.1380433717115; Sat, 28 Sep 2013 22:48:37 -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 u4csp39864vcz; Sat, 28 Sep 2013 22:48:36 -0700 (PDT) X-Received: by 10.66.66.133 with SMTP id f5mr20671473pat.123.1380433716287; Sat, 28 Sep 2013 22:48:36 -0700 (PDT) Received: from hanjun-Latitude-D630.domain ([218.17.215.175]) by mx.google.com with ESMTPS id dl5si13738968pbd.86.1969.12.31.16.00.00 (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Sat, 28 Sep 2013 22:48:36 -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 r8T5kvHd007374; Sun, 29 Sep 2013 13:46:57 +0800 Received: (from hanjun@localhost) by hanjun-Latitude-D630 (8.14.4/8.14.4/Submit) id r8T5kvRG007372; Sun, 29 Sep 2013 13:46:57 +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 10/10] Video / au1100fb: Use module_platform_driver() to simplify code Date: Sun, 29 Sep 2013 13:32:10 +0800 Message-Id: <1380432730-7263-11-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: 2607:f8b0:400c:c02::22a 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/au1100fb.c | 14 +------------- 1 file changed, 1 insertion(+), 13 deletions(-) diff --git a/drivers/video/au1100fb.c b/drivers/video/au1100fb.c index a54ccdc..3d306d4 100644 --- a/drivers/video/au1100fb.c +++ b/drivers/video/au1100fb.c @@ -660,19 +660,7 @@ static struct platform_driver au1100fb_driver = { .suspend = au1100fb_drv_suspend, .resume = au1100fb_drv_resume, }; - -static int __init au1100fb_load(void) -{ - return platform_driver_register(&au1100fb_driver); -} - -static void __exit au1100fb_unload(void) -{ - platform_driver_unregister(&au1100fb_driver); -} - -module_init(au1100fb_load); -module_exit(au1100fb_unload); +module_platform_driver(au1100fb_driver); MODULE_DESCRIPTION(DRIVER_DESC); MODULE_LICENSE("GPL");