From patchwork Sun Sep 29 05:32:09 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Hanjun Guo X-Patchwork-Id: 20691 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-vb0-f71.google.com (mail-vb0-f71.google.com [209.85.212.71]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id EF81C24687 for ; Sun, 29 Sep 2013 05:47:06 +0000 (UTC) Received: by mail-vb0-f71.google.com with SMTP id g17sf3929206vbg.10 for ; Sat, 28 Sep 2013 22:47:06 -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=DwD6BqdpL6dPK+raYjmUvee9HCR7RINtHCKHCywWAPc=; b=ecFNzgoHHEojYNXA26Useccm8vqNakrBYZkgC2aiKLdwY/3ZxOIrANMTO1yUDkTvoL r4cYJanfWhzM5naFT3CemTDC/f73ZgjUi9YeES1fPL0BRbz9j0qBweKgw7cM9gvkaSPZ GAPAcp351wExDXLqHk48ZwP+yOuZRQijDLhsRWGgWFzSGoDrwbKL2QsBuWEqATpjW8tx eYRyudKtophp5G1m2gKmiWoT4EBtCjpFjmPRa9xi9z+MLWxBmJPR2Te5kdRpLHHm76fp FblBCGsUMlJqdUZ6sMBzRwqPyJbxlN0iht3xeGIPxtuYfJG84wKVCagelC0wdoLM4699 IUTw== X-Received: by 10.224.5.5 with SMTP id 5mr4929912qat.4.1380433626626; Sat, 28 Sep 2013 22:47:06 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.49.15.198 with SMTP id z6ls1751177qec.63.gmail; Sat, 28 Sep 2013 22:47:06 -0700 (PDT) X-Received: by 10.58.73.202 with SMTP id n10mr15472484vev.7.1380433626534; Sat, 28 Sep 2013 22:47:06 -0700 (PDT) Received: from mail-vb0-f47.google.com (mail-vb0-f47.google.com [209.85.212.47]) by mx.google.com with ESMTPS id wp10si4169447vdb.6.1969.12.31.16.00.00 (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Sat, 28 Sep 2013 22:47:06 -0700 (PDT) Received-SPF: neutral (google.com: 209.85.212.47 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.47; Received: by mail-vb0-f47.google.com with SMTP id h10so2883199vbh.6 for ; Sat, 28 Sep 2013 22:46:36 -0700 (PDT) X-Gm-Message-State: ALoCoQlLwK9cMO8IAI6eTKnRz7wRMVTScPcNmihSXl+sedVNXaauutpFXENLcC9h42/a9SekUMH4 X-Received: by 10.58.218.225 with SMTP id pj1mr360679vec.24.1380433596339; Sat, 28 Sep 2013 22:46:36 -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 u4csp39800vcz; Sat, 28 Sep 2013 22:46:35 -0700 (PDT) X-Received: by 10.68.130.34 with SMTP id ob2mr401963pbb.155.1380433595473; Sat, 28 Sep 2013 22:46:35 -0700 (PDT) Received: from hanjun-Latitude-D630.domain ([218.17.215.175]) by mx.google.com with ESMTPS id vs7si13700434pbc.205.1969.12.31.16.00.00 (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Sat, 28 Sep 2013 22:46:35 -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 r8T5jDui007368; Sun, 29 Sep 2013 13:45:13 +0800 Received: (from hanjun@localhost) by hanjun-Latitude-D630 (8.14.4/8.14.4/Submit) id r8T5jDiM007365; Sun, 29 Sep 2013 13:45:13 +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 09/10] Video / au1200fb: Use module_platform_driver() to simplify code Date: Sun, 29 Sep 2013 13:32:09 +0800 Message-Id: <1380432730-7263-10-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.47 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/au1200fb.c | 16 +--------------- 1 file changed, 1 insertion(+), 15 deletions(-) diff --git a/drivers/video/au1200fb.c b/drivers/video/au1200fb.c index 301224e..7a6b4c6 100644 --- a/drivers/video/au1200fb.c +++ b/drivers/video/au1200fb.c @@ -1874,21 +1874,7 @@ static struct platform_driver au1200fb_driver = { .probe = au1200fb_drv_probe, .remove = 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");