From patchwork Tue Sep 14 08:30:14 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Felipe Balbi X-Patchwork-Id: 178912 X-Patchwork-Delegate: tony@atomide.com Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by demeter1.kernel.org (8.14.4/8.14.3) with ESMTP id o8E8UZiR025303 for ; Tue, 14 Sep 2010 08:30:38 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753320Ab0INIag (ORCPT ); Tue, 14 Sep 2010 04:30:36 -0400 Received: from comal.ext.ti.com ([198.47.26.152]:42778 "EHLO comal.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753304Ab0INIag (ORCPT ); Tue, 14 Sep 2010 04:30:36 -0400 Received: from dlep34.itg.ti.com ([157.170.170.115]) by comal.ext.ti.com (8.13.7/8.13.7) with ESMTP id o8E8UY5A002004 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Tue, 14 Sep 2010 03:30:34 -0500 Received: from legion.dal.design.ti.com (localhost [127.0.0.1]) by dlep34.itg.ti.com (8.13.7/8.13.7) with ESMTP id o8E8UXuO001374; Tue, 14 Sep 2010 03:30:33 -0500 (CDT) Received: from localhost (wsp000207077wss.emea.dhcp.ti.com [137.167.41.187]) by legion.dal.design.ti.com (8.11.7p1+Sun/8.11.7) with ESMTP id o8E8UWf16036; Tue, 14 Sep 2010 03:30:32 -0500 (CDT) From: Felipe Balbi To: Linux OMAP Mailing List Cc: Jarkko Nikula , Tony Lindgren , Felipe Balbi Subject: [RFT/PATCH 6/8] cbus: tahvo: remove device_release Date: Tue, 14 Sep 2010 11:30:14 +0300 Message-Id: <1284453016-8295-7-git-send-email-balbi@ti.com> X-Mailer: git-send-email 1.7.3.rc0.35.g8ac8c In-Reply-To: <1284453016-8295-1-git-send-email-balbi@ti.com> References: <1284453016-8295-1-git-send-email-balbi@ti.com> Organization: Texas Instruments\n Sender: linux-omap-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-omap@vger.kernel.org X-Greylist: IP, sender and recipient auto-whitelisted, not delayed by milter-greylist-4.2.3 (demeter1.kernel.org [140.211.167.41]); Tue, 14 Sep 2010 08:30:38 +0000 (UTC) diff --git a/drivers/cbus/tahvo.c b/drivers/cbus/tahvo.c index 7d49252..7c57ca4 100644 --- a/drivers/cbus/tahvo.c +++ b/drivers/cbus/tahvo.c @@ -56,8 +56,6 @@ static int tahvo_is_betty; static struct tasklet_struct tahvo_tasklet; spinlock_t tahvo_lock = SPIN_LOCK_UNLOCKED; -static struct completion device_release; - struct tahvo_irq_handler_desc { int (*func)(unsigned long); unsigned long arg; @@ -388,11 +386,6 @@ static int __devexit tahvo_remove(struct platform_device *pdev) return 0; } -static void tahvo_device_release(struct device *dev) -{ - complete(&device_release); -} - static struct platform_driver tahvo_driver = { .probe = tahvo_probe, .remove = __devexit_p(tahvo_remove), @@ -404,9 +397,6 @@ static struct platform_driver tahvo_driver = { static struct platform_device tahvo_device = { .name = "tahvo", .id = -1, - .dev = { - .release = tahvo_device_release, - } }; /** @@ -422,8 +412,6 @@ static int __init tahvo_init(void) machine_is_nokia_n810() || machine_is_nokia_n810_wimax())) return -ENODEV; - init_completion(&device_release); - ret = platform_driver_register(&tahvo_driver); if (ret) return ret; @@ -443,7 +431,6 @@ static void __exit tahvo_exit(void) { platform_device_unregister(&tahvo_device); platform_driver_unregister(&tahvo_driver); - wait_for_completion(&device_release); } subsys_initcall(tahvo_init);