Commit fd2cb0ce authored by Paul Mundt's avatar Paul Mundt

sh: pfc: pr_info() -> pr_debug() cleanups.

For some reason this was using pr_info() nested under an ifdef DEBUG.
While this is appealing in that it circumvents the effort necessary to
change ones loglevel, it's not terribly practical. So, convert it over
to pr_debug().
Signed-off-by: default avatarPaul Mundt <lethal@linux-sh.org>
parent 9cdae914
...@@ -7,7 +7,6 @@ ...@@ -7,7 +7,6 @@
* License. See the file "COPYING" in the main directory of this archive * License. See the file "COPYING" in the main directory of this archive
* for more details. * for more details.
*/ */
#include <linux/errno.h> #include <linux/errno.h>
#include <linux/kernel.h> #include <linux/kernel.h>
#include <linux/list.h> #include <linux/list.h>
...@@ -72,11 +71,9 @@ static void gpio_write_bit(struct pinmux_data_reg *dr, ...@@ -72,11 +71,9 @@ static void gpio_write_bit(struct pinmux_data_reg *dr,
pos = dr->reg_width - (in_pos + 1); pos = dr->reg_width - (in_pos + 1);
#ifdef DEBUG pr_debug("write_bit addr = %lx, value = %ld, pos = %ld, "
pr_info("write_bit addr = %lx, value = %ld, pos = %ld, "
"r_width = %ld\n", "r_width = %ld\n",
dr->reg, !!value, pos, dr->reg_width); dr->reg, !!value, pos, dr->reg_width);
#endif
if (value) if (value)
set_bit(pos, &dr->reg_shadow); set_bit(pos, &dr->reg_shadow);
...@@ -95,11 +92,9 @@ static int gpio_read_reg(unsigned long reg, unsigned long reg_width, ...@@ -95,11 +92,9 @@ static int gpio_read_reg(unsigned long reg, unsigned long reg_width,
mask = (1 << field_width) - 1; mask = (1 << field_width) - 1;
pos = reg_width - ((in_pos + 1) * field_width); pos = reg_width - ((in_pos + 1) * field_width);
#ifdef DEBUG pr_debug("read_reg: addr = %lx, pos = %ld, "
pr_info("read_reg: addr = %lx, pos = %ld, "
"r_width = %ld, f_width = %ld\n", "r_width = %ld, f_width = %ld\n",
reg, pos, reg_width, field_width); reg, pos, reg_width, field_width);
#endif
data = gpio_read_raw_reg(reg, reg_width); data = gpio_read_raw_reg(reg, reg_width);
return (data >> pos) & mask; return (data >> pos) & mask;
...@@ -114,11 +109,9 @@ static void gpio_write_reg(unsigned long reg, unsigned long reg_width, ...@@ -114,11 +109,9 @@ static void gpio_write_reg(unsigned long reg, unsigned long reg_width,
mask = (1 << field_width) - 1; mask = (1 << field_width) - 1;
pos = reg_width - ((in_pos + 1) * field_width); pos = reg_width - ((in_pos + 1) * field_width);
#ifdef DEBUG pr_debug("write_reg addr = %lx, value = %ld, pos = %ld, "
pr_info("write_reg addr = %lx, value = %ld, pos = %ld, "
"r_width = %ld, f_width = %ld\n", "r_width = %ld, f_width = %ld\n",
reg, value, pos, reg_width, field_width); reg, value, pos, reg_width, field_width);
#endif
mask = ~(mask << pos); mask = ~(mask << pos);
value = value << pos; value = value << pos;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment