From cf9e3406d23f2a028c3407a1ea9db5a092967b6f Mon Sep 17 00:00:00 2001 From: Paul Mundt Date: Mon, 30 Nov 2009 12:15:04 +0900 Subject: [PATCH] --- yaml --- r: 173511 b: refs/heads/master c: fd2cb0ce74e07babaf8c7bf96ef03c25d194e463 h: refs/heads/master i: 173509: 34ee4e8a9056603269298c38517794670f5a61c8 173507: 62d5174c7bc8796b14901cb662af08a80f2997c7 173503: db816d3cca89c8e6e4958f8684495535dbc5c654 v: v3 --- [refs] | 2 +- trunk/drivers/sh/pfc.c | 25 +++++++++---------------- 2 files changed, 10 insertions(+), 17 deletions(-) diff --git a/[refs] b/[refs] index 2dbf9bad4939..130d7156a10e 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: 9cdae914b2d08febca6e6e0440817d60da115ba5 +refs/heads/master: fd2cb0ce74e07babaf8c7bf96ef03c25d194e463 diff --git a/trunk/drivers/sh/pfc.c b/trunk/drivers/sh/pfc.c index 448ba232c408..841ed5030c8f 100644 --- a/trunk/drivers/sh/pfc.c +++ b/trunk/drivers/sh/pfc.c @@ -7,7 +7,6 @@ * License. See the file "COPYING" in the main directory of this archive * for more details. */ - #include #include #include @@ -72,11 +71,9 @@ static void gpio_write_bit(struct pinmux_data_reg *dr, pos = dr->reg_width - (in_pos + 1); -#ifdef DEBUG - pr_info("write_bit addr = %lx, value = %ld, pos = %ld, " - "r_width = %ld\n", - dr->reg, !!value, pos, dr->reg_width); -#endif + pr_debug("write_bit addr = %lx, value = %ld, pos = %ld, " + "r_width = %ld\n", + dr->reg, !!value, pos, dr->reg_width); if (value) set_bit(pos, &dr->reg_shadow); @@ -95,11 +92,9 @@ static int gpio_read_reg(unsigned long reg, unsigned long reg_width, mask = (1 << field_width) - 1; pos = reg_width - ((in_pos + 1) * field_width); -#ifdef DEBUG - pr_info("read_reg: addr = %lx, pos = %ld, " - "r_width = %ld, f_width = %ld\n", - reg, pos, reg_width, field_width); -#endif + pr_debug("read_reg: addr = %lx, pos = %ld, " + "r_width = %ld, f_width = %ld\n", + reg, pos, reg_width, field_width); data = gpio_read_raw_reg(reg, reg_width); return (data >> pos) & mask; @@ -114,11 +109,9 @@ static void gpio_write_reg(unsigned long reg, unsigned long reg_width, mask = (1 << field_width) - 1; pos = reg_width - ((in_pos + 1) * field_width); -#ifdef DEBUG - pr_info("write_reg addr = %lx, value = %ld, pos = %ld, " - "r_width = %ld, f_width = %ld\n", - reg, value, pos, reg_width, field_width); -#endif + pr_debug("write_reg addr = %lx, value = %ld, pos = %ld, " + "r_width = %ld, f_width = %ld\n", + reg, value, pos, reg_width, field_width); mask = ~(mask << pos); value = value << pos;