Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753990Ab1F3WEc (ORCPT ); Thu, 30 Jun 2011 18:04:32 -0400 Received: from mail1-out1.atlantis.sk ([80.94.52.55]:45148 "EHLO mail.atlantis.sk" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1752705Ab1F3WER (ORCPT ); Thu, 30 Jun 2011 18:04:17 -0400 From: Ondrej Zary To: "Greg Kroah-Hartman" Cc: Marek Belisko , Kernel development list Subject: [PATCH 20/28] staging: ft1000-pcmcia: remove useless debugging from ft1000_cs.c Date: Fri, 1 Jul 2011 00:03:49 +0200 Message-Id: <1309471437-12633-21-git-send-email-linux@rainbow-software.org> X-Mailer: git-send-email 1.7.2.5 In-Reply-To: <1309471437-12633-1-git-send-email-linux@rainbow-software.org> References: <1309471437-12633-1-git-send-email-linux@rainbow-software.org> Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 2287 Lines: 77 Remove useless debugging from ft1000_cs.c Signed-off-by: Ondrej Zary --- drivers/staging/ft1000/ft1000-pcmcia/ft1000_cs.c | 18 ------------------ 1 files changed, 0 insertions(+), 18 deletions(-) diff --git a/drivers/staging/ft1000/ft1000-pcmcia/ft1000_cs.c b/drivers/staging/ft1000/ft1000-pcmcia/ft1000_cs.c index a9b0cff..b99f07d 100644 --- a/drivers/staging/ft1000/ft1000-pcmcia/ft1000_cs.c +++ b/drivers/staging/ft1000/ft1000-pcmcia/ft1000_cs.c @@ -65,11 +65,6 @@ MODULE_LICENSE("GPL"); left out. If you compile with PCMCIA_DEBUG=0, the debug code will be present but disabled. */ -#ifdef FT_DEBUG -#define DEBUG(n, args...) printk(KERN_DEBUG args) -#else -#define DEBUG(n, args...) -#endif /*====================================================================*/ @@ -103,8 +98,6 @@ static void ft1000_reset(struct pcmcia_device * link) static int ft1000_attach(struct pcmcia_device *link) { - DEBUG(0, "ft1000_cs: ft1000_attach()\n"); - link->priv = NULL; link->config_flags |= CONF_ENABLE_IRQ | CONF_AUTO_SET_IO; @@ -125,13 +118,6 @@ static void ft1000_detach(struct pcmcia_device *link) { struct net_device *dev = link->priv; - DEBUG(0, "ft1000_cs: ft1000_detach(0x%p)\n", link); - - if (link == NULL) { - DEBUG(0,"ft1000_cs:ft1000_detach: Got a NULL pointer\n"); - return; - } - if (dev) { stop_ft1000_card(dev); } @@ -207,8 +193,6 @@ failed: static void ft1000_release(struct pcmcia_device * link) { - DEBUG(0, "ft1000_cs: ft1000_release(0x%p)\n", link); - /* If the device is currently in use, we won't release until it is actually closed, because until then, we can't be sure that @@ -277,13 +261,11 @@ static struct pcmcia_driver ft1000_cs_driver = { static int __init init_ft1000_cs(void) { - DEBUG(0, "ft1000_cs: loading\n"); return pcmcia_register_driver(&ft1000_cs_driver); } static void __exit exit_ft1000_cs(void) { - DEBUG(0, "ft1000_cs: unloading\n"); pcmcia_unregister_driver(&ft1000_cs_driver); } -- Ondrej Zary -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/