From patchwork Fri Sep 20 06:35:38 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sachin Kamat X-Patchwork-Id: 2915411 Return-Path: X-Original-To: patchwork-linux-fbdev@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork1.web.kernel.org (Postfix) with ESMTP id 226209F1F1 for ; Fri, 20 Sep 2013 06:35:30 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 51C41202C8 for ; Fri, 20 Sep 2013 06:35:29 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 48139202C3 for ; Fri, 20 Sep 2013 06:35:28 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753879Ab3ITGf1 (ORCPT ); Fri, 20 Sep 2013 02:35:27 -0400 Received: from mail-pb0-f44.google.com ([209.85.160.44]:33231 "EHLO mail-pb0-f44.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753826Ab3ITGf1 (ORCPT ); Fri, 20 Sep 2013 02:35:27 -0400 Received: by mail-pb0-f44.google.com with SMTP id xa7so19577pbc.17 for ; Thu, 19 Sep 2013 23:35:26 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=2VpxUhcto618yBCDeR4GdjbJeqNhJxs2wNuB3q0Gk3w=; b=DYXgZB+qsHOzFgBO/G8TZchgtPwIH/x8nEa3HaSjusSXfPwoMhyyFsUuinpYODwmEW xAfZIqidKYtPoHAh32+/jbpIjd4YnSkTpuDkHiHcUbUFLbB/2+lo+txRp5zP+SvwVMdN uKhI+y8DwGbOhENMNaVunLo80EfLxy2VJ70zvyVUO4j+BClImZtAJsDtVKVrKgU1axQV H8jrufU1s5Xqd7o7XvrN33UlB1VjXXndT+HFWCUFoXKj7HeWwycEHokCTPOUE+I8Ay0b eKTb6cxi75F4FZECHBrAcLGGNX6V3yFALEGonH9e2CdxAuGlLD1b3dgl8BpOY61c7y/v eo9Q== X-Gm-Message-State: ALoCoQnJjlm36LIy7TcQj6VvripLMAwHiaMero/zR4FLye/Gq7savQA4pku3IYheMZW/Ene/zNDe X-Received: by 10.66.141.165 with SMTP id rp5mr7150253pab.90.1379658926807; Thu, 19 Sep 2013 23:35:26 -0700 (PDT) Received: from linaro.sisodomain.com ([115.113.119.130]) by mx.google.com with ESMTPSA id sn4sm9037098pbc.37.1969.12.31.16.00.00 (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Thu, 19 Sep 2013 23:35:26 -0700 (PDT) From: Sachin Kamat To: linux-fbdev@vger.kernel.org Cc: tomi.valkeinen@ti.com, plagnioj@jcrosoft.com, sachin.kamat@linaro.org, Kristoffer Glembo Subject: [PATCH 1/1] video: grvga: Use module_platform_driver Date: Fri, 20 Sep 2013 12:05:38 +0530 Message-Id: <1379658938-18080-1-git-send-email-sachin.kamat@linaro.org> X-Mailer: git-send-email 1.7.9.5 Sender: linux-fbdev-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-fbdev@vger.kernel.org X-Spam-Status: No, score=-7.6 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_HI, RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=ham version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP module_platform_driver removes some boilerplate code and makes it simple. Signed-off-by: Sachin Kamat Cc: Kristoffer Glembo --- drivers/video/grvga.c | 14 +------------- 1 file changed, 1 insertion(+), 13 deletions(-) diff --git a/drivers/video/grvga.c b/drivers/video/grvga.c index 01fbcaf..c078701 100644 --- a/drivers/video/grvga.c +++ b/drivers/video/grvga.c @@ -555,19 +555,7 @@ static struct platform_driver grvga_driver = { .remove = grvga_remove, }; - -static int __init grvga_init(void) -{ - return platform_driver_register(&grvga_driver); -} - -static void __exit grvga_exit(void) -{ - platform_driver_unregister(&grvga_driver); -} - -module_init(grvga_init); -module_exit(grvga_exit); +module_platform_driver(grvga_driver); MODULE_LICENSE("GPL"); MODULE_AUTHOR("Aeroflex Gaisler");