diff options
Diffstat (limited to 'arch/sh')
-rw-r--r-- | 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 828c8597219d..b16843d02b76 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, | |||
94 | static void __iomem *shmedia_alloc_io(unsigned long phys, unsigned long size, | 94 | static void __iomem *shmedia_alloc_io(unsigned long phys, unsigned long size, |
95 | const char *name, unsigned long flags) | 95 | const char *name, unsigned long flags) |
96 | { | 96 | { |
97 | static int printed_full; | ||
98 | struct xresource *xres; | 97 | struct xresource *xres; |
99 | struct resource *res; | 98 | struct resource *res; |
100 | char *tack; | 99 | char *tack; |
@@ -108,11 +107,8 @@ static void __iomem *shmedia_alloc_io(unsigned long phys, unsigned long size, | |||
108 | tack = xres->xname; | 107 | tack = xres->xname; |
109 | res = &xres->xres; | 108 | res = &xres->xres; |
110 | } else { | 109 | } else { |
111 | if (!printed_full) { | 110 | printk_once(KERN_NOTICE "%s: done with statics, " |
112 | printk(KERN_NOTICE "%s: done with statics, " | ||
113 | "switching to kmalloc\n", __func__); | 111 | "switching to kmalloc\n", __func__); |
114 | printed_full = 1; | ||
115 | } | ||
116 | tlen = strlen(name); | 112 | tlen = strlen(name); |
117 | tack = kmalloc(sizeof(struct resource) + tlen + 1, GFP_KERNEL); | 113 | tack = kmalloc(sizeof(struct resource) + tlen + 1, GFP_KERNEL); |
118 | if (!tack) | 114 | if (!tack) |