aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm/mach-omap2/mux.c
diff options
context:
space:
mode:
authorDan Murphy <dmurphy@ti.com>2010-11-15 10:50:50 -0500
committerBenoit Cousson <b-cousson@ti.com>2010-11-17 06:01:54 -0500
commit032a6424aeea7333a8dafc8cc05dd10b09c62680 (patch)
tree0e63a2d865bfab15058c39b36a756c7507b68329 /arch/arm/mach-omap2/mux.c
parentfc63de829bbfa3945ffd6327bd3dc88f4e643642 (diff)
OMAP: mux: Add __func__ macro to pr_xxx macros
Removed mux: and added the __func__ macro to make debugging easier. Signed-off-by: Dan Murphy <dmurphy@ti.com> Signed-off-by: Benoit Cousson <b-cousson@ti.com> Cc: Tony Lindgren <tony@atomide.com>
Diffstat (limited to 'arch/arm/mach-omap2/mux.c')
-rw-r--r--arch/arm/mach-omap2/mux.c30
1 files changed, 15 insertions, 15 deletions
diff --git a/arch/arm/mach-omap2/mux.c b/arch/arm/mach-omap2/mux.c
index 92215703b671..3d71d93caab2 100644
--- a/arch/arm/mach-omap2/mux.c
+++ b/arch/arm/mach-omap2/mux.c
@@ -114,12 +114,12 @@ static int __init _omap_mux_init_gpio(struct omap_mux_partition *partition,
114 } 114 }
115 115
116 if (found == 0) { 116 if (found == 0) {
117 pr_err("mux: Could not set gpio%i\n", gpio); 117 pr_err("%s: Could not set gpio%i\n", __func__, gpio);
118 return -ENODEV; 118 return -ENODEV;
119 } 119 }
120 120
121 if (found > 1) { 121 if (found > 1) {
122 pr_info("mux: Multiple gpio paths (%d) for gpio%i\n", 122 pr_info("%s: Multiple gpio paths (%d) for gpio%i\n", __func__,
123 found, gpio); 123 found, gpio);
124 return -EINVAL; 124 return -EINVAL;
125 } 125 }
@@ -130,7 +130,7 @@ static int __init _omap_mux_init_gpio(struct omap_mux_partition *partition,
130 mux_mode |= OMAP_MUX_MODE3; 130 mux_mode |= OMAP_MUX_MODE3;
131 else 131 else
132 mux_mode |= OMAP_MUX_MODE4; 132 mux_mode |= OMAP_MUX_MODE4;
133 pr_debug("mux: Setting signal %s.gpio%i 0x%04x -> 0x%04x\n", 133 pr_debug("%s: Setting signal %s.gpio%i 0x%04x -> 0x%04x\n", __func__,
134 gpio_mux->muxnames[0], gpio, old_mode, mux_mode); 134 gpio_mux->muxnames[0], gpio, old_mode, mux_mode);
135 omap_mux_write(partition, mux_mode, gpio_mux->reg_offset); 135 omap_mux_write(partition, mux_mode, gpio_mux->reg_offset);
136 136
@@ -190,8 +190,8 @@ static int __init _omap_mux_init_signal(struct omap_mux_partition *partition,
190 old_mode = omap_mux_read(partition, 190 old_mode = omap_mux_read(partition,
191 m->reg_offset); 191 m->reg_offset);
192 mux_mode = val | i; 192 mux_mode = val | i;
193 pr_debug("mux: Setting signal " 193 pr_debug("%s: Setting signal "
194 "%s.%s 0x%04x -> 0x%04x\n", 194 "%s.%s 0x%04x -> 0x%04x\n", __func__,
195 m0_entry, muxname, old_mode, mux_mode); 195 m0_entry, muxname, old_mode, mux_mode);
196 omap_mux_write(partition, mux_mode, 196 omap_mux_write(partition, mux_mode,
197 m->reg_offset); 197 m->reg_offset);
@@ -204,12 +204,12 @@ static int __init _omap_mux_init_signal(struct omap_mux_partition *partition,
204 return 0; 204 return 0;
205 205
206 if (found > 1) { 206 if (found > 1) {
207 pr_err("mux: Multiple signal paths (%i) for %s\n", 207 pr_err("%s: Multiple signal paths (%i) for %s\n", __func__,
208 found, muxname); 208 found, muxname);
209 return -EINVAL; 209 return -EINVAL;
210 } 210 }
211 211
212 pr_err("mux: Could not set signal %s\n", muxname); 212 pr_err("%s: Could not set signal %s\n", __func__, muxname);
213 213
214 return -ENODEV; 214 return -ENODEV;
215} 215}
@@ -561,7 +561,7 @@ static void __init omap_mux_package_fixup(struct omap_mux *p,
561 s++; 561 s++;
562 } 562 }
563 if (!found) 563 if (!found)
564 pr_err("mux: Unknown entry offset 0x%x\n", 564 pr_err("%s: Unknown entry offset 0x%x\n", __func__,
565 p->reg_offset); 565 p->reg_offset);
566 p++; 566 p++;
567 } 567 }
@@ -586,7 +586,7 @@ static void __init omap_mux_package_init_balls(struct omap_ball *b,
586 s++; 586 s++;
587 } 587 }
588 if (!found) 588 if (!found)
589 pr_err("mux: Unknown ball offset 0x%x\n", 589 pr_err("%s: Unknown ball offset 0x%x\n", __func__,
590 b->reg_offset); 590 b->reg_offset);
591 b++; 591 b++;
592 } 592 }
@@ -722,7 +722,7 @@ u16 omap_mux_get_gpio(int gpio)
722 } 722 }
723 723
724 if (!m || m->reg_offset == OMAP_MUX_TERMINATOR) 724 if (!m || m->reg_offset == OMAP_MUX_TERMINATOR)
725 pr_err("mux: Could not get gpio%i\n", gpio); 725 pr_err("%s: Could not get gpio%i\n", __func__, gpio);
726 726
727 return OMAP_MUX_TERMINATOR; 727 return OMAP_MUX_TERMINATOR;
728} 728}
@@ -742,7 +742,7 @@ void omap_mux_set_gpio(u16 val, int gpio)
742 } 742 }
743 743
744 if (!m || m->reg_offset == OMAP_MUX_TERMINATOR) 744 if (!m || m->reg_offset == OMAP_MUX_TERMINATOR)
745 pr_err("mux: Could not set gpio%i\n", gpio); 745 pr_err("%s: Could not set gpio%i\n", __func__, gpio);
746} 746}
747 747
748static struct omap_mux * __init omap_mux_list_add( 748static struct omap_mux * __init omap_mux_list_add(
@@ -800,7 +800,7 @@ static void __init omap_mux_init_list(struct omap_mux_partition *partition,
800 800
801 entry = omap_mux_list_add(partition, superset); 801 entry = omap_mux_list_add(partition, superset);
802 if (!entry) { 802 if (!entry) {
803 pr_err("mux: Could not add entry\n"); 803 pr_err("%s: Could not add entry\n", __func__);
804 return; 804 return;
805 } 805 }
806 superset++; 806 superset++;
@@ -862,8 +862,8 @@ int __init omap_mux_init(const char *name, u32 flags,
862 partition->phys = mux_pbase; 862 partition->phys = mux_pbase;
863 partition->base = ioremap(mux_pbase, mux_size); 863 partition->base = ioremap(mux_pbase, mux_size);
864 if (!partition->base) { 864 if (!partition->base) {
865 pr_err("mux: Could not ioremap mux partition at 0x%08x\n", 865 pr_err("%s: Could not ioremap mux partition at 0x%08x\n",
866 partition->phys); 866 __func__, partition->phys);
867 return -ENODEV; 867 return -ENODEV;
868 } 868 }
869 869
@@ -871,7 +871,7 @@ int __init omap_mux_init(const char *name, u32 flags,
871 871
872 list_add_tail(&partition->node, &mux_partitions); 872 list_add_tail(&partition->node, &mux_partitions);
873 mux_partitions_cnt++; 873 mux_partitions_cnt++;
874 pr_info("MUX: Add partition: #%d: %s, flags: %x\n", 874 pr_info("%s: Add partition: #%d: %s, flags: %x\n", __func__,
875 mux_partitions_cnt, partition->name, partition->flags); 875 mux_partitions_cnt, partition->name, partition->flags);
876 876
877 omap_mux_init_package(superset, package_subset, package_balls); 877 omap_mux_init_package(superset, package_subset, package_balls);