From patchwork Mon Jul 11 11:17:31 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Felipe Balbi X-Patchwork-Id: 964152 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by demeter1.kernel.org (8.14.4/8.14.4) with ESMTP id p6BBJ8LR020484 for ; Mon, 11 Jul 2011 11:19:17 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755242Ab1GKLTQ (ORCPT ); Mon, 11 Jul 2011 07:19:16 -0400 Received: from na3sys009aog113.obsmtp.com ([74.125.149.209]:36083 "EHLO na3sys009aog113.obsmtp.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755228Ab1GKLTP (ORCPT ); Mon, 11 Jul 2011 07:19:15 -0400 Received: from mail-gx0-f175.google.com ([209.85.161.175]) (using TLSv1) by na3sys009aob113.postini.com ([74.125.148.12]) with SMTP ID DSNKThrcMixHf5FtnXd5L1Vq5n9aduvFq9eS@postini.com; Mon, 11 Jul 2011 04:19:15 PDT Received: by mail-gx0-f175.google.com with SMTP id 3so1851943gxk.34 for ; Mon, 11 Jul 2011 04:19:14 -0700 (PDT) Received: by 10.236.182.197 with SMTP id o45mr4992008yhm.330.1310383154814; Mon, 11 Jul 2011 04:19:14 -0700 (PDT) Received: from localhost (dragon.ti.com [192.94.94.33]) by mx.google.com with ESMTPS id c69sm2947983yhm.1.2011.07.11.04.19.12 (version=TLSv1/SSLv3 cipher=OTHER); Mon, 11 Jul 2011 04:19:14 -0700 (PDT) From: Felipe Balbi To: Tony Lindgren Cc: Linux OMAP Mailing List , =?UTF-8?q?Michael=20B=C3=BCsch?= , Felipe Balbi Subject: [PATCH 18/22] cbus: tahvo: drop the get_status hack Date: Mon, 11 Jul 2011 14:17:31 +0300 Message-Id: <1310383055-20211-19-git-send-email-balbi@ti.com> X-Mailer: git-send-email 1.7.6 In-Reply-To: <1310383055-20211-1-git-send-email-balbi@ti.com> References: <1310383055-20211-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.6 (demeter1.kernel.org [140.211.167.41]); Mon, 11 Jul 2011 11:19:17 +0000 (UTC) that's really not needed. Signed-off-by: Felipe Balbi --- drivers/cbus/tahvo-usb.c | 4 ---- drivers/cbus/tahvo.c | 6 ------ drivers/cbus/tahvo.h | 1 - 3 files changed, 0 insertions(+), 11 deletions(-) diff --git a/drivers/cbus/tahvo-usb.c b/drivers/cbus/tahvo-usb.c index e078440..04fe770 100644 --- a/drivers/cbus/tahvo-usb.c +++ b/drivers/cbus/tahvo-usb.c @@ -594,10 +594,6 @@ static int __init tahvo_usb_probe(struct platform_device *pdev) int ret; int irq; - ret = tahvo_get_status(); - if (!ret) - return -ENODEV; - dev_dbg(dev, "probe\n"); /* Create driver data */ diff --git a/drivers/cbus/tahvo.c b/drivers/cbus/tahvo.c index ab6e7ea..2597672 100644 --- a/drivers/cbus/tahvo.c +++ b/drivers/cbus/tahvo.c @@ -59,12 +59,6 @@ struct tahvo { static struct tahvo *the_tahvo; -int tahvo_get_status(void) -{ - return the_tahvo != NULL; -} -EXPORT_SYMBOL(tahvo_get_status); - /** * __tahvo_read_reg - Reads a value from a register in Tahvo * @tahvo: pointer to tahvo structure diff --git a/drivers/cbus/tahvo.h b/drivers/cbus/tahvo.h index b2f195f..3c0b381 100644 --- a/drivers/cbus/tahvo.h +++ b/drivers/cbus/tahvo.h @@ -50,7 +50,6 @@ #define MAX_TAHVO_IRQ_HANDLERS 8 -int tahvo_get_status(void); int tahvo_read_reg(unsigned reg); void tahvo_write_reg(unsigned reg, u16 val); void tahvo_set_clear_reg_bits(unsigned reg, u16 set, u16 clear);