From patchwork Sun Aug 9 19:53:59 2009 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: =?utf-8?q?Marcin_=C5=9Alusarz?= X-Patchwork-Id: 40297 Received: from vger.kernel.org (vger.kernel.org [209.132.176.167]) by demeter.kernel.org (8.14.2/8.14.2) with ESMTP id n79JwSdr030285 for ; Sun, 9 Aug 2009 19:58:29 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752854AbZHIT4e (ORCPT ); Sun, 9 Aug 2009 15:56:34 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1753149AbZHIT4d (ORCPT ); Sun, 9 Aug 2009 15:56:33 -0400 Received: from fg-out-1718.google.com ([72.14.220.155]:23922 "EHLO fg-out-1718.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752854AbZHITy3 (ORCPT ); Sun, 9 Aug 2009 15:54:29 -0400 Received: by fg-out-1718.google.com with SMTP id e21so641206fga.17 for ; Sun, 09 Aug 2009 12:54:30 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:received:from:to:cc:subject :date:message-id:x-mailer:in-reply-to:references; bh=2qj+AVOM/fjUvQIFB0RV9+FAajsrOUuUmj74Mrbbe6I=; b=rFRem00wu0M00bQ5Tb5Ne4YMV7bP+PjAy0S790OMcvgSw/fkYVvjCtvWudXXo74t7O +l0VGtK6Vxn/NeCRLtMxn8yl4OIGeM8Fhvel4+Uc2/2ZIc14BoS6LQW3CW/DPDobUwuR gD1KuYa1uLjXwnQTsH+3maot38a3/9Od7Gu1Y= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=from:to:cc:subject:date:message-id:x-mailer:in-reply-to:references; b=a2TYfwSDmRTeUpSJJtkmp11FtIs+SegdxLJtVSLsf6hAWNbmIME/KO3GjBCDxRtrfM //ctRvolMuilpEiBvh0gNx9l7PmOO+YtZUX6z1PeC49RVdFDTObEhxWf0NbLDvhaqg/N ajqCpBNherrPaQRzlRpURiAT4vdh+q0JWM/+E= Received: by 10.86.9.10 with SMTP id 10mr2669153fgi.48.1249847669967; Sun, 09 Aug 2009 12:54:29 -0700 (PDT) Received: from joi (bfq40.neoplus.adsl.tpnet.pl [83.28.54.40]) by mx.google.com with ESMTPS id e11sm10039594fga.1.2009.08.09.12.54.28 (version=TLSv1/SSLv3 cipher=RC4-MD5); Sun, 09 Aug 2009 12:54:29 -0700 (PDT) Received: by joi (sSMTP sendmail emulation); Sun, 09 Aug 2009 21:54:27 +0200 From: Marcin Slusarz To: LKML Cc: Paul Mundt , linux-sh@vger.kernel.org Subject: [PATCH 04/14] sh: use printk_once Date: Sun, 9 Aug 2009 21:53:59 +0200 Message-Id: <1249847649-11631-5-git-send-email-marcin.slusarz@gmail.com> X-Mailer: git-send-email 1.6.3.3 In-Reply-To: <1249847649-11631-1-git-send-email-marcin.slusarz@gmail.com> References: <1249847649-11631-1-git-send-email-marcin.slusarz@gmail.com> Sender: linux-sh-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-sh@vger.kernel.org Signed-off-by: Marcin Slusarz Cc: Paul Mundt Cc: linux-sh@vger.kernel.org --- arch/sh/mm/ioremap_64.c | 6 +----- 1 files changed, 1 insertions(+), 5 deletions(-) diff --git a/arch/sh/mm/ioremap_64.c b/arch/sh/mm/ioremap_64.c index 828c859..b16843d 100644 --- a/arch/sh/mm/ioremap_64.c +++ b/arch/sh/mm/ioremap_64.c @@ -94,7 +94,6 @@ static struct resource *shmedia_find_resource(struct resource *root, static void __iomem *shmedia_alloc_io(unsigned long phys, unsigned long size, const char *name, unsigned long flags) { - static int printed_full; struct xresource *xres; struct resource *res; char *tack; @@ -108,11 +107,8 @@ static void __iomem *shmedia_alloc_io(unsigned long phys, unsigned long size, tack = xres->xname; res = &xres->xres; } else { - if (!printed_full) { - printk(KERN_NOTICE "%s: done with statics, " + printk_once(KERN_NOTICE "%s: done with statics, " "switching to kmalloc\n", __func__); - printed_full = 1; - } tlen = strlen(name); tack = kmalloc(sizeof(struct resource) + tlen + 1, GFP_KERNEL); if (!tack)