aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm/mach-omap2/mux.c
diff options
context:
space:
mode:
authorBenoit Cousson <b-cousson@ti.com>2010-08-10 11:33:01 -0400
committerBenoit Cousson <b-cousson@ti.com>2010-11-17 06:01:49 -0500
commit1cbb3a9a132969ed1ffeaecff2f910619d4470ae (patch)
tree016c3450c4e835517b9fe3e4c442da44d291a8a6 /arch/arm/mach-omap2/mux.c
parente53beacd23d9cb47590da6a7a7f6d417b941a994 (diff)
OMAP: mux: Replace printk with pr_xxx macros
Replace all the printk(KERN_XXX... with pr_xxx macros. Signed-off-by: Benoit Cousson <b-cousson@ti.com> Cc: Tony Lindgren <tony@atomide.com> Cc: Paul Walmsley <paul@pwsan.com> Cc: Kevin Hilman <khilman@deeprootsystems.com>
Diffstat (limited to 'arch/arm/mach-omap2/mux.c')
-rw-r--r--arch/arm/mach-omap2/mux.c38
1 files changed, 19 insertions, 19 deletions
diff --git a/arch/arm/mach-omap2/mux.c b/arch/arm/mach-omap2/mux.c
index 074536ae401f..979e9d1c4659 100644
--- a/arch/arm/mach-omap2/mux.c
+++ b/arch/arm/mach-omap2/mux.c
@@ -102,13 +102,13 @@ int __init omap_mux_init_gpio(int gpio, int val)
102 } 102 }
103 103
104 if (found == 0) { 104 if (found == 0) {
105 printk(KERN_ERR "mux: Could not set gpio%i\n", gpio); 105 pr_err("mux: Could not set gpio%i\n", gpio);
106 return -ENODEV; 106 return -ENODEV;
107 } 107 }
108 108
109 if (found > 1) { 109 if (found > 1) {
110 printk(KERN_INFO "mux: Multiple gpio paths (%d) for gpio%i\n", 110 pr_info("mux: Multiple gpio paths (%d) for gpio%i\n",
111 found, gpio); 111 found, gpio);
112 return -EINVAL; 112 return -EINVAL;
113 } 113 }
114 114
@@ -118,8 +118,8 @@ int __init omap_mux_init_gpio(int gpio, int val)
118 mux_mode |= OMAP_MUX_MODE3; 118 mux_mode |= OMAP_MUX_MODE3;
119 else 119 else
120 mux_mode |= OMAP_MUX_MODE4; 120 mux_mode |= OMAP_MUX_MODE4;
121 printk(KERN_DEBUG "mux: Setting signal %s.gpio%i 0x%04x -> 0x%04x\n", 121 pr_debug("mux: Setting signal %s.gpio%i 0x%04x -> 0x%04x\n",
122 gpio_mux->muxnames[0], gpio, old_mode, mux_mode); 122 gpio_mux->muxnames[0], gpio, old_mode, mux_mode);
123 omap_mux_write(mux_mode, gpio_mux->reg_offset); 123 omap_mux_write(mux_mode, gpio_mux->reg_offset);
124 124
125 return 0; 125 return 0;
@@ -161,9 +161,9 @@ int __init omap_mux_init_signal(const char *muxname, int val)
161 161
162 old_mode = omap_mux_read(m->reg_offset); 162 old_mode = omap_mux_read(m->reg_offset);
163 mux_mode = val | i; 163 mux_mode = val | i;
164 printk(KERN_DEBUG "mux: Setting signal " 164 pr_debug("mux: Setting signal "
165 "%s.%s 0x%04x -> 0x%04x\n", 165 "%s.%s 0x%04x -> 0x%04x\n",
166 m0_entry, muxname, old_mode, mux_mode); 166 m0_entry, muxname, old_mode, mux_mode);
167 omap_mux_write(mux_mode, m->reg_offset); 167 omap_mux_write(mux_mode, m->reg_offset);
168 found++; 168 found++;
169 } 169 }
@@ -174,12 +174,12 @@ int __init omap_mux_init_signal(const char *muxname, int val)
174 return 0; 174 return 0;
175 175
176 if (found > 1) { 176 if (found > 1) {
177 printk(KERN_ERR "mux: Multiple signal paths (%i) for %s\n", 177 pr_err("mux: Multiple signal paths (%i) for %s\n",
178 found, muxname); 178 found, muxname);
179 return -EINVAL; 179 return -EINVAL;
180 } 180 }
181 181
182 printk(KERN_ERR "mux: Could not set signal %s\n", muxname); 182 pr_err("mux: Could not set signal %s\n", muxname);
183 183
184 return -ENODEV; 184 return -ENODEV;
185} 185}
@@ -462,8 +462,8 @@ static void __init omap_mux_package_fixup(struct omap_mux *p,
462 s++; 462 s++;
463 } 463 }
464 if (!found) 464 if (!found)
465 printk(KERN_ERR "mux: Unknown entry offset 0x%x\n", 465 pr_err("mux: Unknown entry offset 0x%x\n",
466 p->reg_offset); 466 p->reg_offset);
467 p++; 467 p++;
468 } 468 }
469} 469}
@@ -487,8 +487,8 @@ static void __init omap_mux_package_init_balls(struct omap_ball *b,
487 s++; 487 s++;
488 } 488 }
489 if (!found) 489 if (!found)
490 printk(KERN_ERR "mux: Unknown ball offset 0x%x\n", 490 pr_err("mux: Unknown ball offset 0x%x\n",
491 b->reg_offset); 491 b->reg_offset);
492 b++; 492 b++;
493 } 493 }
494} 494}
@@ -615,7 +615,7 @@ u16 omap_mux_get_gpio(int gpio)
615 615
616 offset = omap_mux_get_by_gpio(gpio); 616 offset = omap_mux_get_by_gpio(gpio);
617 if (offset == OMAP_MUX_TERMINATOR) { 617 if (offset == OMAP_MUX_TERMINATOR) {
618 printk(KERN_ERR "mux: Could not get gpio%i\n", gpio); 618 pr_err("mux: Could not get gpio%i\n", gpio);
619 return offset; 619 return offset;
620 } 620 }
621 621
@@ -629,7 +629,7 @@ void omap_mux_set_gpio(u16 val, int gpio)
629 629
630 offset = omap_mux_get_by_gpio(gpio); 630 offset = omap_mux_get_by_gpio(gpio);
631 if (offset == OMAP_MUX_TERMINATOR) { 631 if (offset == OMAP_MUX_TERMINATOR) {
632 printk(KERN_ERR "mux: Could not set gpio%i\n", gpio); 632 pr_err("mux: Could not set gpio%i\n", gpio);
633 return; 633 return;
634 } 634 }
635 635
@@ -687,7 +687,7 @@ static void __init omap_mux_init_list(struct omap_mux *superset)
687 687
688 entry = omap_mux_list_add(superset); 688 entry = omap_mux_list_add(superset);
689 if (!entry) { 689 if (!entry) {
690 printk(KERN_ERR "mux: Could not add entry\n"); 690 pr_err("mux: Could not add entry\n");
691 return; 691 return;
692 } 692 }
693 superset++; 693 superset++;
@@ -738,7 +738,7 @@ int __init omap_mux_init(u32 mux_pbase, u32 mux_size,
738 mux_phys = mux_pbase; 738 mux_phys = mux_pbase;
739 mux_base = ioremap(mux_pbase, mux_size); 739 mux_base = ioremap(mux_pbase, mux_size);
740 if (!mux_base) { 740 if (!mux_base) {
741 printk(KERN_ERR "mux: Could not ioremap\n"); 741 pr_err("mux: Could not ioremap\n");
742 return -ENODEV; 742 return -ENODEV;
743 } 743 }
744 744