From patchwork Sun Sep 29 05:32:01 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Hanjun Guo X-Patchwork-Id: 20683 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-ye0-f200.google.com (mail-ye0-f200.google.com [209.85.213.200]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 2A55F24687 for ; Sun, 29 Sep 2013 05:36:55 +0000 (UTC) Received: by mail-ye0-f200.google.com with SMTP id r5sf3806526yen.11 for ; Sat, 28 Sep 2013 22:36:55 -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=mKtrWkM5LqyIerTdY6TZEL609QhxXRoddWsO+MR5KeY=; b=NREGoajHBJtdlpFVnF2S0KJIaX4Bx5Y4KJcHd7mlZu9Xg//Y4fQlO2QEjmS+KolJYS PBnkih+JWFQ3gHwc7ZoAJIi9feyKvrmC87IYfvQazT8bgA3OnDBmZMDW4zWEtaQI4rK5 Y74RmNOJTboje0O+QuAeCz8q2OUWRsqFmf160LCW32Yrh2uf4Cx5H6kt9akwzXxP5b1L 8Zc2v46SzdVxsK0km3sWoKmp6GCqWXdoF7/rrGmDFpwukmtWAwYu/voA4lfufHk3HkEa hH4OS1WJeN35e4g1UOnqgutxnJy6A+GDY5f/LAe5TvYEI7XWEXaS9bMpYUWBqtSipR76 RENQ== X-Received: by 10.224.97.1 with SMTP id j1mr4832521qan.6.1380433014964; Sat, 28 Sep 2013 22:36:54 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.49.2.166 with SMTP id 6ls1723735qev.69.gmail; Sat, 28 Sep 2013 22:36:54 -0700 (PDT) X-Received: by 10.220.10.194 with SMTP id q2mr15256682vcq.2.1380433014879; Sat, 28 Sep 2013 22:36:54 -0700 (PDT) Received: from mail-ve0-f173.google.com (mail-ve0-f173.google.com [209.85.128.173]) by mx.google.com with ESMTPS id xs13si4156409veb.104.1969.12.31.16.00.00 (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Sat, 28 Sep 2013 22:36:54 -0700 (PDT) Received-SPF: neutral (google.com: 209.85.128.173 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.173; Received: by mail-ve0-f173.google.com with SMTP id cz12so3085962veb.4 for ; Sat, 28 Sep 2013 22:36:24 -0700 (PDT) X-Gm-Message-State: ALoCoQkDyUGdF1ywT6uEjMMJjUFenSLpPeFbmcIAHflmsfZyLcEhjb0lR9KDubWI6RQrZc7rlyRF X-Received: by 10.58.136.4 with SMTP id pw4mr15509095veb.10.1380432984797; Sat, 28 Sep 2013 22:36:24 -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 u4csp39478vcz; Sat, 28 Sep 2013 22:36:24 -0700 (PDT) X-Received: by 10.68.168.99 with SMTP id zv3mr529865pbb.144.1380432983879; Sat, 28 Sep 2013 22:36:23 -0700 (PDT) Received: from hanjun-Latitude-D630.domain ([218.17.215.175]) by mx.google.com with ESMTPS id qc9si15682770pac.124.1969.12.31.16.00.00 (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Sat, 28 Sep 2013 22:36:23 -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 r8T5Z3wX007307; Sun, 29 Sep 2013 13:35:03 +0800 Received: (from hanjun@localhost) by hanjun-Latitude-D630 (8.14.4/8.14.4/Submit) id r8T5Z2gQ007305; Sun, 29 Sep 2013 13:35:02 +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 01/10] Video / hecubafb: Use module_platform_driver() to simplify code Date: Sun, 29 Sep 2013 13:32:01 +0800 Message-Id: <1380432730-7263-2-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.173 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/hecubafb.c | 14 +------------- 1 file changed, 1 insertion(+), 13 deletions(-) diff --git a/drivers/video/hecubafb.c b/drivers/video/hecubafb.c index 59d2318..702b599 100644 --- a/drivers/video/hecubafb.c +++ b/drivers/video/hecubafb.c @@ -305,19 +305,7 @@ static struct platform_driver hecubafb_driver = { .name = "hecubafb", }, }; - -static int __init hecubafb_init(void) -{ - return platform_driver_register(&hecubafb_driver); -} - -static void __exit hecubafb_exit(void) -{ - platform_driver_unregister(&hecubafb_driver); -} - -module_init(hecubafb_init); -module_exit(hecubafb_exit); +module_platform_driver(hecubafb_driver); MODULE_DESCRIPTION("fbdev driver for Hecuba/Apollo controller"); MODULE_AUTHOR("Jaya Kumar");