From patchwork Sun Sep 29 05:32:07 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Hanjun Guo X-Patchwork-Id: 20689 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-ve0-f198.google.com (mail-ve0-f198.google.com [209.85.128.198]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id CCCD424687 for ; Sun, 29 Sep 2013 05:44:53 +0000 (UTC) Received: by mail-ve0-f198.google.com with SMTP id c14sf4039113vea.5 for ; Sat, 28 Sep 2013 22:44:51 -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=HhatoeNjRyidjIfzsyKAS1EHPFghW9+ETsURpTemuJU=; b=H9CCLWe1MHCBiuWkJOFAK7nvUJ5mV4VPaMsHLFITmWarDJRHtgxFCAFiBaKnh+MAfx LQJlKCJlynpuIpdWyB6daM9led27+veS+cYI7vBEDVEBV+Dri62x2eKEVKrQ/FjO8B7L hlAkLJIi59m87G1EL2G4VPPlFr9xyZ7ZkA1rG6ligv9C8FGLT3CKT5k5+kd3/6gYVCOg Y1fuvP1koYcHAoIqbG/9haEJUxoEkgWAeO+9l1yMbvzpeQKlwlPk9/bZQLjZBH8ni9p+ jHYhO8usEU8x26EORcaNmhcm5ujPidgCii2k1iVYi/8dlhkKDtuhKZc8tqg/Gvxmhd0A 57wg== X-Received: by 10.224.97.1 with SMTP id j1mr4855678qan.6.1380433491390; Sat, 28 Sep 2013 22:44:51 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.49.17.98 with SMTP id n2ls1704280qed.12.gmail; Sat, 28 Sep 2013 22:44:51 -0700 (PDT) X-Received: by 10.58.134.16 with SMTP id pg16mr15388571veb.21.1380433491312; Sat, 28 Sep 2013 22:44:51 -0700 (PDT) Received: from mail-ve0-f177.google.com (mail-ve0-f177.google.com [209.85.128.177]) by mx.google.com with ESMTPS id wh9si4175108vcb.18.1969.12.31.16.00.00 (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Sat, 28 Sep 2013 22:44:51 -0700 (PDT) Received-SPF: neutral (google.com: 209.85.128.177 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.177; Received: by mail-ve0-f177.google.com with SMTP id db12so3083235veb.8 for ; Sat, 28 Sep 2013 22:44:21 -0700 (PDT) X-Gm-Message-State: ALoCoQmE9g9YH9pkVL9+qUPj654dFsTDRpzPjxEAnqBzo4EadA99T6E4ovyhwGTCc+62zajm0CmP X-Received: by 10.220.186.202 with SMTP id ct10mr9683613vcb.14.1380433461237; Sat, 28 Sep 2013 22:44:21 -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 u4csp39733vcz; Sat, 28 Sep 2013 22:44:20 -0700 (PDT) X-Received: by 10.68.108.3 with SMTP id hg3mr16466621pbb.91.1380433459912; Sat, 28 Sep 2013 22:44:19 -0700 (PDT) Received: from hanjun-Latitude-D630.domain ([218.17.215.175]) by mx.google.com with ESMTPS id yk3si15722882pac.41.1969.12.31.16.00.00 (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Sat, 28 Sep 2013 22:44:19 -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 r8T5gwCj007358; Sun, 29 Sep 2013 13:42:58 +0800 Received: (from hanjun@localhost) by hanjun-Latitude-D630 (8.14.4/8.14.4/Submit) id r8T5gvG9007355; Sun, 29 Sep 2013 13:42:57 +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 07/10] Video / broadsheetfb: Use module_platform_driver() to simplify code Date: Sun, 29 Sep 2013 13:32:07 +0800 Message-Id: <1380432730-7263-8-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.177 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/broadsheetfb.c | 14 +------------- 1 file changed, 1 insertion(+), 13 deletions(-) diff --git a/drivers/video/broadsheetfb.c b/drivers/video/broadsheetfb.c index b09701c..393d5a0 100644 --- a/drivers/video/broadsheetfb.c +++ b/drivers/video/broadsheetfb.c @@ -1217,19 +1217,7 @@ static struct platform_driver broadsheetfb_driver = { .name = "broadsheetfb", }, }; - -static int __init broadsheetfb_init(void) -{ - return platform_driver_register(&broadsheetfb_driver); -} - -static void __exit broadsheetfb_exit(void) -{ - platform_driver_unregister(&broadsheetfb_driver); -} - -module_init(broadsheetfb_init); -module_exit(broadsheetfb_exit); +module_platform_driver(broadsheetfb_driver); MODULE_DESCRIPTION("fbdev driver for Broadsheet controller"); MODULE_AUTHOR("Jaya Kumar");