From patchwork Sun Sep 29 05:32:06 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Hanjun Guo X-Patchwork-Id: 20688 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-vb0-f69.google.com (mail-vb0-f69.google.com [209.85.212.69]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id C35E824687 for ; Sun, 29 Sep 2013 05:43:06 +0000 (UTC) Received: by mail-vb0-f69.google.com with SMTP id e13sf3938014vbg.0 for ; Sat, 28 Sep 2013 22:43: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=nrsSa6+Z6l8LOjBkcTSguGbhku7Jr7hBXaAM6IUitUM=; b=Pb3NNiQf4sdqxS4UlXd/pLryFBA9fj47uBglIpBEdcHQcyzh8u5j3Wk0WsueBIY6/Q tk1sEADgmZrhm47dI9l83qov73IYkxRVmw3SseWPCGCKQ+DWW90HMyL0KnnLhZNqe+3P fvv97jHnbd+StFb6GSibk4dFTZhMnFwZ95ckwpuhlY7TuPx6D8eiC4AfU30aB6B5qEHE xVvB5J2ybxP8jreBF4DI3ZteywatjgRNmcAJY70V9WbbjyJkrLpAibAohoEkxGJTQMdw wwhxzAeFAppPC7iHV/6dsPCtwGPQgbGNQLqp0v0JWoKCGuu5W4PTybuewthg4myKFFRQ Dimw== X-Received: by 10.224.97.1 with SMTP id j1mr4850727qan.6.1380433386601; Sat, 28 Sep 2013 22:43:06 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.49.70.228 with SMTP id p4ls1741532qeu.43.gmail; Sat, 28 Sep 2013 22:43:06 -0700 (PDT) X-Received: by 10.220.186.202 with SMTP id ct10mr9678698vcb.14.1380433386531; Sat, 28 Sep 2013 22:43:06 -0700 (PDT) Received: from mail-ve0-f175.google.com (mail-ve0-f175.google.com [209.85.128.175]) by mx.google.com with ESMTPS id st7si4156483vdc.68.1969.12.31.16.00.00 (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Sat, 28 Sep 2013 22:43:06 -0700 (PDT) Received-SPF: neutral (google.com: 209.85.128.175 is neither permitted nor denied by best guess record for domain of patch+caf_=patchwork-forward=linaro.org@linaro.org) client-ip=209.85.128.175; Received: by mail-ve0-f175.google.com with SMTP id jy13so3080764veb.20 for ; Sat, 28 Sep 2013 22:42:36 -0700 (PDT) X-Gm-Message-State: ALoCoQkK6UWDo9FHR0Oto4A5z7u3OTOWk9IF2ndZ/OkQb9vU8ZAWrpZtC+1iMHcNmcNISwWJigFB X-Received: by 10.52.26.69 with SMTP id j5mr12968144vdg.21.1380433356459; Sat, 28 Sep 2013 22:42: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 u4csp39688vcz; Sat, 28 Sep 2013 22:42:36 -0700 (PDT) X-Received: by 10.68.134.65 with SMTP id pi1mr16655349pbb.59.1380433355604; Sat, 28 Sep 2013 22:42:35 -0700 (PDT) Received: from hanjun-Latitude-D630.domain ([218.17.215.175]) by mx.google.com with ESMTPS id ds3si13688933pbb.199.1969.12.31.16.00.00 (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Sat, 28 Sep 2013 22:42: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 r8T5f9Pu007352; Sun, 29 Sep 2013 13:41:09 +0800 Received: (from hanjun@localhost) by hanjun-Latitude-D630 (8.14.4/8.14.4/Submit) id r8T5f8im007348; Sun, 29 Sep 2013 13:41:08 +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 06/10] Video / cobalt_lcdfb: Use module_platform_driver() to simplify code Date: Sun, 29 Sep 2013 13:32:06 +0800 Message-Id: <1380432730-7263-7-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.128.175 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/cobalt_lcdfb.c | 14 +------------- 1 file changed, 1 insertion(+), 13 deletions(-) diff --git a/drivers/video/cobalt_lcdfb.c b/drivers/video/cobalt_lcdfb.c index a903149..a7b0ab6 100644 --- a/drivers/video/cobalt_lcdfb.c +++ b/drivers/video/cobalt_lcdfb.c @@ -395,19 +395,7 @@ static struct platform_driver cobalt_lcdfb_driver = { .owner = THIS_MODULE, }, }; - -static int __init cobalt_lcdfb_init(void) -{ - return platform_driver_register(&cobalt_lcdfb_driver); -} - -static void __exit cobalt_lcdfb_exit(void) -{ - platform_driver_unregister(&cobalt_lcdfb_driver); -} - -module_init(cobalt_lcdfb_init); -module_exit(cobalt_lcdfb_exit); +module_platform_driver(cobalt_lcdfb_driver); MODULE_LICENSE("GPL v2"); MODULE_AUTHOR("Yoichi Yuasa");