From patchwork Sun Sep 29 05:32:02 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Hanjun Guo X-Patchwork-Id: 20684 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-qe0-f72.google.com (mail-qe0-f72.google.com [209.85.128.72]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 3678A24687 for ; Sun, 29 Sep 2013 05:38:31 +0000 (UTC) Received: by mail-qe0-f72.google.com with SMTP id 6sf3998166qea.3 for ; Sat, 28 Sep 2013 22:38:30 -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=lJDHj2hzRNhuEPFj+xrORRQ3yBmA6CUgd0yzQYMwjLQ=; b=eQEiD+uzktAyxAltqKXP/gZU8ZnuetSjcFpAI0ckAca+LrNakUhzOPR5rQwsqXFQTG bWfTiPqo7kAKI3nT22agSQGdMww6jmla2O8R3a26/nn3rAWF+lb+pP0Yd6mUCYRlq55b +0bS5OZmpRlqFE/87MLEIHb7Lutr3wUNfo5eKA7D8nK2/GkTATfreJBuq7/LCCMx2spv AjdN5qPPwRlzfac8l88tWZ1+fq7VmrmArvdENgPKlg7CLtg1Kw9R+FiBAZDtl6KTr6N5 tWlQLhNiV58JSIaJvE6lcJ3syXIr0vhAvoYqBWNQxGgxmbIPJo2HIrnfj2ft15CVxaW9 fLFA== X-Received: by 10.236.88.129 with SMTP id a1mr2505740yhf.40.1380433110772; Sat, 28 Sep 2013 22:38:30 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.49.16.200 with SMTP id i8ls1782321qed.65.gmail; Sat, 28 Sep 2013 22:38:30 -0700 (PDT) X-Received: by 10.52.100.202 with SMTP id fa10mr12904068vdb.0.1380433110682; Sat, 28 Sep 2013 22:38:30 -0700 (PDT) Received: from mail-vb0-f45.google.com (mail-vb0-f45.google.com [209.85.212.45]) by mx.google.com with ESMTPS id ed9si4172064vcb.6.1969.12.31.16.00.00 (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Sat, 28 Sep 2013 22:38:30 -0700 (PDT) Received-SPF: neutral (google.com: 209.85.212.45 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.45; Received: by mail-vb0-f45.google.com with SMTP id e15so2863068vbg.18 for ; Sat, 28 Sep 2013 22:38:00 -0700 (PDT) X-Gm-Message-State: ALoCoQkw29U2boEQxrukemPTNR9mEPdztGn+dVPkgs3+gIHeXpqw97qAk+DLFL5WIgVD+npsWpEN X-Received: by 10.58.161.116 with SMTP id xr20mr15243749veb.2.1380433080614; Sat, 28 Sep 2013 22:38:00 -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 u4csp39523vcz; Sat, 28 Sep 2013 22:38:00 -0700 (PDT) X-Received: by 10.68.130.1 with SMTP id oa1mr16703892pbb.35.1380433079759; Sat, 28 Sep 2013 22:37:59 -0700 (PDT) Received: from hanjun-Latitude-D630.domain ([218.17.215.175]) by mx.google.com with ESMTPS id gx9si15663053pac.214.1969.12.31.16.00.00 (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Sat, 28 Sep 2013 22:37:59 -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 r8T5aKsF007312; Sun, 29 Sep 2013 13:36:20 +0800 Received: (from hanjun@localhost) by hanjun-Latitude-D630 (8.14.4/8.14.4/Submit) id r8T5aK8l007310; Sun, 29 Sep 2013 13:36:20 +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 02/10] Video / bfin-t350mcqb-fb: Use module_platform_driver() to simplify code Date: Sun, 29 Sep 2013 13:32:02 +0800 Message-Id: <1380432730-7263-3-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.45 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/bfin-t350mcqb-fb.c | 14 +------------- 1 file changed, 1 insertion(+), 13 deletions(-) diff --git a/drivers/video/bfin-t350mcqb-fb.c b/drivers/video/bfin-t350mcqb-fb.c index 48c0c4e..b5cf130 100644 --- a/drivers/video/bfin-t350mcqb-fb.c +++ b/drivers/video/bfin-t350mcqb-fb.c @@ -664,19 +664,7 @@ static struct platform_driver bfin_t350mcqb_driver = { .owner = THIS_MODULE, }, }; - -static int __init bfin_t350mcqb_driver_init(void) -{ - return platform_driver_register(&bfin_t350mcqb_driver); -} - -static void __exit bfin_t350mcqb_driver_cleanup(void) -{ - platform_driver_unregister(&bfin_t350mcqb_driver); -} +module_platform_driver(bfin_t350mcqb_driver); MODULE_DESCRIPTION("Blackfin TFT LCD Driver"); MODULE_LICENSE("GPL"); - -module_init(bfin_t350mcqb_driver_init); -module_exit(bfin_t350mcqb_driver_cleanup);