From patchwork Sun Sep 29 05:32:08 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Hanjun Guo X-Patchwork-Id: 20690 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-ye0-f197.google.com (mail-ye0-f197.google.com [209.85.213.197]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 41AE224687 for ; Sun, 29 Sep 2013 05:46:09 +0000 (UTC) Received: by mail-ye0-f197.google.com with SMTP id q5sf3805959yen.0 for ; Sat, 28 Sep 2013 22:46:08 -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=G4zNYc+BqkiG15e3K9VzvXg2vcr+5FzHEpP25QYFKx4=; b=fl0nFrzAbprWiW1P0v2/lWEP5u7mo3aNrTFjLZMfRLaM6QlnKL0hVDjc8f62/zwQRH H53qEGw/XocbMTGBVVG72uNM6SC2fWi2kWSCcNQwJNFFBE7Cm64Mt7XKq/bimb8LhD8Z zVaKEmoFTJRWDZlwVVxM2SoueA9D3v+Q+8evUcKGNy3OZ9I8SZNim6hLA59S2i5Ah9tI VPnqMEV8P++RinU5c4993xx8sRaAsjMzx5SAQ960Jot2BH72XUiTZXmQTcZoh7Jg+HQL tUdyipSdbTKrDhuPn6ZohWTwiFVI158D3ivuAITdKqOY7yPNOZ/Gr9nONNIZZkyIeKjw ONgg== X-Received: by 10.224.96.136 with SMTP id h8mr4867236qan.8.1380433568700; Sat, 28 Sep 2013 22:46:08 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.49.29.167 with SMTP id l7ls1759630qeh.47.gmail; Sat, 28 Sep 2013 22:46:08 -0700 (PDT) X-Received: by 10.58.137.167 with SMTP id qj7mr15180895veb.1.1380433568594; Sat, 28 Sep 2013 22:46:08 -0700 (PDT) Received: from mail-vc0-f171.google.com (mail-vc0-f171.google.com [209.85.220.171]) by mx.google.com with ESMTPS id gq10si4148937vdc.147.1969.12.31.16.00.00 (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Sat, 28 Sep 2013 22:46:08 -0700 (PDT) Received-SPF: neutral (google.com: 209.85.220.171 is neither permitted nor denied by best guess record for domain of patch+caf_=patchwork-forward=linaro.org@linaro.org) client-ip=209.85.220.171; Received: by mail-vc0-f171.google.com with SMTP id ij15so2884454vcb.2 for ; Sat, 28 Sep 2013 22:45:38 -0700 (PDT) X-Gm-Message-State: ALoCoQmn96dUr8Bu6uf8w3E21DCCF06TE4uYL7EpOt9ZI7W/SRgYS+y4Dtrk+fE+IH+5LiBJmKYx X-Received: by 10.52.113.99 with SMTP id ix3mr12888246vdb.22.1380433538519; Sat, 28 Sep 2013 22:45:38 -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 u4csp39771vcz; Sat, 28 Sep 2013 22:45:38 -0700 (PDT) X-Received: by 10.66.218.98 with SMTP id pf2mr21048938pac.120.1380433537577; Sat, 28 Sep 2013 22:45:37 -0700 (PDT) Received: from hanjun-Latitude-D630.domain ([218.17.215.175]) by mx.google.com with ESMTPS id gx9si15679654pac.243.1969.12.31.16.00.00 (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Sat, 28 Sep 2013 22:45:37 -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 r8T5iABn007362; Sun, 29 Sep 2013 13:44:10 +0800 Received: (from hanjun@localhost) by hanjun-Latitude-D630 (8.14.4/8.14.4/Submit) id r8T5i94W007361; Sun, 29 Sep 2013 13:44:09 +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 08/10] Video / bf54x-lq043fb: Use module_platform_driver() to simplify code Date: Sun, 29 Sep 2013 13:32:08 +0800 Message-Id: <1380432730-7263-9-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.220.171 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/bf54x-lq043fb.c | 14 +------------- 1 file changed, 1 insertion(+), 13 deletions(-) diff --git a/drivers/video/bf54x-lq043fb.c b/drivers/video/bf54x-lq043fb.c index 87f288b..42b8f9d 100644 --- a/drivers/video/bf54x-lq043fb.c +++ b/drivers/video/bf54x-lq043fb.c @@ -761,19 +761,7 @@ static struct platform_driver bfin_bf54x_driver = { .owner = THIS_MODULE, }, }; - -static int __init bfin_bf54x_driver_init(void) -{ - return platform_driver_register(&bfin_bf54x_driver); -} - -static void __exit bfin_bf54x_driver_cleanup(void) -{ - platform_driver_unregister(&bfin_bf54x_driver); -} +module_platform_driver(bfin_bf54x_driver); MODULE_DESCRIPTION("Blackfin BF54x TFT LCD Driver"); MODULE_LICENSE("GPL"); - -module_init(bfin_bf54x_driver_init); -module_exit(bfin_bf54x_driver_cleanup);