From patchwork Thu Aug 23 21:55:22 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Devendra Naga X-Patchwork-Id: 1369051 Return-Path: X-Original-To: patchwork-linux-fbdev@patchwork.kernel.org Delivered-To: patchwork-process-083081@patchwork1.kernel.org Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by patchwork1.kernel.org (Postfix) with ESMTP id B7CEE3FCAE for ; Thu, 23 Aug 2012 21:55:32 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1750988Ab2HWVzb (ORCPT ); Thu, 23 Aug 2012 17:55:31 -0400 Received: from mail-pb0-f46.google.com ([209.85.160.46]:60909 "EHLO mail-pb0-f46.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750798Ab2HWVz3 (ORCPT ); Thu, 23 Aug 2012 17:55:29 -0400 Received: by pbbrr13 with SMTP id rr13so2248804pbb.19 for ; Thu, 23 Aug 2012 14:55:29 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id:x-mailer; bh=RZPQawyWsqB3Yzr4u265xXR/DVpSgnPC2ORHUfsAESc=; b=N0fXnXjETuwXV4vF4pcvKEjHO/wdkrr81huCfE47plGGkmUQtaJ54EWtcUkJRlfX5m prrKg1c21kG2e3noO+g7t9h2iuAOCV9VE/YXhZam5zigCgZUUMA3fV9MigI7KeJFS5LH f3THiBlTYIhTWifSNBade62j2jcTDZvM63iR3ci+5BDGlL95ERQ1Xm+oa6FuPhr/5O22 LNYqvu/cq45Ca0S050tzCLcYvTNb32fGEQlDyXBF7fbdwS9WWtYiJ7IqzErwLWu5zioX r6KNCdRo1mpYoeuIVNMjgRu+vlCXinW25aF9ggWmTdaNwDbUXNRfte4+BF/QFwI/Ty+M A71Q== Received: by 10.66.84.229 with SMTP id c5mr6381314paz.12.1345758929367; Thu, 23 Aug 2012 14:55:29 -0700 (PDT) Received: from test-laptop.localdomain6 ([122.172.0.236]) by mx.google.com with ESMTPS id ty1sm6768140pbc.76.2012.08.23.14.55.27 (version=TLSv1/SSLv3 cipher=OTHER); Thu, 23 Aug 2012 14:55:28 -0700 (PDT) From: Devendra Naga To: Florian Tobias Schandinat , linux-fbdev@vger.kernel.org Cc: Devendra Naga Subject: [PATCH] video: bfin-lq035q1: use module_platform_driver Date: Fri, 24 Aug 2012 03:25:22 +0530 Message-Id: <1345758922-10626-1-git-send-email-develkernel412222@gmail.com> 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 the driver's module init and exit functions are calling platform_driver_register and platform_driver_unregister and doing nothing else. This same as that of the module_platform_driver, remove this init and exit functions and use the module_platform_driver instead Signed-off-by: Devendra Naga --- drivers/video/bfin-lq035q1-fb.c | 12 +----------- 1 file changed, 1 insertion(+), 11 deletions(-) diff --git a/drivers/video/bfin-lq035q1-fb.c b/drivers/video/bfin-lq035q1-fb.c index 353c02f..1b21519 100644 --- a/drivers/video/bfin-lq035q1-fb.c +++ b/drivers/video/bfin-lq035q1-fb.c @@ -853,17 +853,7 @@ static struct platform_driver bfin_lq035q1_driver = { }, }; -static int __init bfin_lq035q1_driver_init(void) -{ - return platform_driver_register(&bfin_lq035q1_driver); -} -module_init(bfin_lq035q1_driver_init); - -static void __exit bfin_lq035q1_driver_cleanup(void) -{ - platform_driver_unregister(&bfin_lq035q1_driver); -} -module_exit(bfin_lq035q1_driver_cleanup); +module_platform_driver(bfin_lq035q1_driver); MODULE_DESCRIPTION("Blackfin TFT LCD Driver"); MODULE_LICENSE("GPL");