From patchwork Sun Aug 23 18:23:34 2009 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Marcin Slusarz X-Patchwork-Id: 31878 X-Patchwork-Delegate: davem@davemloft.net Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from vger.kernel.org (vger.kernel.org [209.132.176.167]) by bilbo.ozlabs.org (Postfix) with ESMTP id 0F43EB70B0 for ; Mon, 24 Aug 2009 04:24:43 +1000 (EST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S933515AbZHWSXi (ORCPT ); Sun, 23 Aug 2009 14:23:38 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S933441AbZHWSXh (ORCPT ); Sun, 23 Aug 2009 14:23:37 -0400 Received: from mail-bw0-f219.google.com ([209.85.218.219]:51011 "EHLO mail-bw0-f219.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S933462AbZHWSXf (ORCPT ); Sun, 23 Aug 2009 14:23:35 -0400 Received: by bwz19 with SMTP id 19so1149735bwz.37 for ; Sun, 23 Aug 2009 11:23:36 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from :user-agent:mime-version:to:cc:subject:content-type :content-transfer-encoding; bh=4uYAk7O9mPY5C3DQpbeKlYM2Zxxgavz+vjkl1vHsj14=; b=qkBT5U8j9xs6+181kREszSLGYK6Bd9bW+b0SxWDPRn+VGE3mLmJH4kRbb7TZttCfZf lRrgp8CeyGVfnrUOCKEXQvB2sTHT16XKDAXFx4Wy75sZnkAEES+vhzTPEylaq9vRLNuQ XH6ffSCrppNnkqtwTbzltWx/WNvt9H+BLeG9M= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:user-agent:mime-version:to:cc:subject :content-type:content-transfer-encoding; b=W489vAiNkQDD0E+u0IKidjaRXx8pmj+RKB2KQYpnc/UZ92aHFPh7o67uOLWlvvAq4w nwRzA09gQhxjshgm2Q3JapHF6x8IaeUhHTKeGwFTZEq6oVovIRA+Y+BqysVdEWA1jAXj Jd1ZQDl5WCJ3N5qMcg6hGPVdjcEbIL5kmkbCw= Received: by 10.102.245.35 with SMTP id s35mr1410667muh.124.1251051816355; Sun, 23 Aug 2009 11:23:36 -0700 (PDT) Received: from ?192.168.1.104? (acet161.neoplus.adsl.tpnet.pl [83.9.195.161]) by mx.google.com with ESMTPS id 14sm18240972muo.33.2009.08.23.11.23.35 (version=TLSv1/SSLv3 cipher=RC4-MD5); Sun, 23 Aug 2009 11:23:35 -0700 (PDT) Message-ID: <4A918926.8020801@gmail.com> Date: Sun, 23 Aug 2009 20:23:34 +0200 From: Marcin Slusarz User-Agent: Thunderbird 2.0.0.22 (X11/20090605) MIME-Version: 1.0 To: Andrew Morton CC: Jeff Garzik , linux-ide@vger.kernel.org, LKML Subject: [PATCH resend] ata: use printk_once Sender: linux-ide-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-ide@vger.kernel.org Signed-off-by: Marcin Slusarz Cc: Jeff Garzik Cc: linux-ide@vger.kernel.org --- To unsubscribe from this list: send the line "unsubscribe linux-ide" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html diff --git a/drivers/ata/pata_rz1000.c b/drivers/ata/pata_rz1000.c index 0c574c0..a5e4dfe 100644 --- a/drivers/ata/pata_rz1000.c +++ b/drivers/ata/pata_rz1000.c @@ -85,7 +85,6 @@ static int rz1000_fifo_disable(struct pci_dev *pdev) static int rz1000_init_one (struct pci_dev *pdev, const struct pci_device_id *ent) { - static int printed_version; static const struct ata_port_info info = { .flags = ATA_FLAG_SLAVE_POSS, .pio_mask = ATA_PIO4, @@ -93,8 +92,7 @@ static int rz1000_init_one (struct pci_dev *pdev, const struct pci_device_id *en }; const struct ata_port_info *ppi[] = { &info, NULL }; - if (!printed_version++) - printk(KERN_DEBUG DRV_NAME " version " DRV_VERSION "\n"); + printk_once(KERN_DEBUG DRV_NAME " version " DRV_VERSION "\n"); if (rz1000_fifo_disable(pdev) == 0) return ata_pci_sff_init_one(pdev, ppi, &rz1000_sht, NULL);