aboutsummaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
authorJ Freyensee <james_p_freyensee@linux.intel.com>2010-12-09 10:37:37 +0000
committerAlan Cox <alan@linux.intel.com>2010-12-09 10:37:37 +0000
commita6d0cb8424ac05b04b39fe5bcbe815c220cea7ab (patch)
tree81bb241fe50e69ccd345169e94bd0d405a175a12 /drivers
parent06d9e71de05eea87b2498f58459b7274fc28f91e (diff)
downloadmrst-s0i3-test-a6d0cb8424ac05b04b39fe5bcbe815c220cea7ab.tar.gz
mrst-s0i3-test-a6d0cb8424ac05b04b39fe5bcbe815c220cea7ab.tar.xz
mrst-s0i3-test-a6d0cb8424ac05b04b39fe5bcbe815c220cea7ab.zip
pti: pr_debug removal
This patch removes all debugging messages from the pti.c driver. Signed-off-by: J Freyensee <james_p_freyensee@linux.intel.com> Signed-off-by: Alan Cox <alan@linux.intel.com>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/misc/pti.c26
1 files changed, 1 insertions, 25 deletions
diff --git a/drivers/misc/pti.c b/drivers/misc/pti.c
index 5fda02c8cf9..9124fb2b24c 100644
--- a/drivers/misc/pti.c
+++ b/drivers/misc/pti.c
@@ -131,10 +131,6 @@ static void pti_write_to_aperture(struct masterchannel *mc, u8 *buf, int len)
for (i = 0; i < dwordcnt; i++) {
ptiword = be32_to_cpu(*(u32 *)p);
p += 4;
- pr_debug("%s(%d): PTI aperture: master(%d), channel(%d)\n",
- __func__, __LINE__, mc->master, mc->channel);
- pr_debug("%s(%d): PTI double word: %#x\n\n",
- __func__, __LINE__, ptiword);
iowrite32(ptiword, aperture);
}
@@ -144,10 +140,6 @@ static void pti_write_to_aperture(struct masterchannel *mc, u8 *buf, int len)
for (i = 0; i < final; i++)
ptiword |= *p++ << (24-(8*i));
- pr_debug("%s(%d): PTI aperture: master(%d), channel(%d)\n",
- __func__, __LINE__, mc->master, mc->channel);
- pr_debug("%s(%d): Final PTI double word: %#x\n\n",
- __func__, __LINE__, ptiword);
iowrite32(ptiword, aperture);
return;
}
@@ -362,11 +354,8 @@ void mipi_pti_writedata(struct masterchannel *mc, u8 *buf, int count)
API function, thus, all parameters should
be checked for validity.
*/
- if ((mc != NULL) && (buf != NULL) && (count > 0)) {
+ if ((mc != NULL) && (buf != NULL) && (count > 0))
pti_write_to_aperture(mc, buf, count);
- pr_debug("%s(%d): buf: %s, len: %d\n", __func__, __LINE__,
- buf, count);
- }
return;
}
EXPORT_SYMBOL_GPL(mipi_pti_writedata);
@@ -414,9 +403,6 @@ static int pti_tty_driver_open(struct tty_struct *tty, struct file *filp)
struct masterchannel *mc;
int ret = 0;
- pr_debug("%s: tty->name is: %s\n", __func__, tty->name);
- pr_debug("%s: tty->index is: %d\n", __func__, tty->index);
-
/*
we actually want to allocate a new channel per open, per
system arch. HW gives more than plenty channels for a single
@@ -456,8 +442,6 @@ static void pti_tty_driver_close(struct tty_struct *tty, struct file *filp)
struct pti_tty *pti_tty_data;
struct masterchannel *mc;
- pr_debug("%s(%d): Called.\n", __func__, __LINE__);
-
pti_tty_data = tty->driver_data;
if (pti_tty_data != NULL) {
mc = pti_tty_data->mc;
@@ -517,8 +501,6 @@ int pti_tty_driver_write(struct tty_struct *tty,
struct masterchannel *mc;
struct pti_tty *pti_tty_data;
- pr_debug("%s(%d): buf: %s, len: %d\n", __func__, __LINE__, buf, len);
-
pti_tty_data = tty->driver_data;
mc = pti_tty_data->mc;
pti_write_to_aperture(mc, (u8 *)buf, len);
@@ -611,8 +593,6 @@ ssize_t pti_char_write(struct file *filp, const char *data, size_t len,
return n ? n : -EFAULT;
}
- pr_debug("%s(%d): writing %u bytes\n", __func__, __LINE__,
- size);
pti_write_to_aperture(mc, kbuf, size);
n += size;
tmp += size;
@@ -703,8 +683,6 @@ static struct console pti_console = {
*/
int pti_port_activate(struct tty_port *port, struct tty_struct *tty)
{
- pr_debug("%s(%d): Called.\n", __func__, __LINE__);
- pr_debug("%s(%d): index is: %d\n", __func__, __LINE__, port->tty->index);
if (port->tty->index == PTITTY_MINOR_START)
console_start(&pti_console);
return 0;
@@ -722,8 +700,6 @@ int pti_port_activate(struct tty_port *port, struct tty_struct *tty)
*/
void pti_port_shutdown(struct tty_port *port)
{
- pr_debug("%s(%d): Called.\n", __func__, __LINE__);
- pr_debug("%s(%d): index is: %d\n", __func__, __LINE__, port->tty->index);
if (port->tty->index == PTITTY_MINOR_START)
console_stop(&pti_console);
}