irda: Convert IRDA_DEBUG to pr_debug
Use the normal kernel debugging mechanism which also enables dynamic_debug at the same time. Other miscellanea: o Remove sysctl for irda_debug o Remove function tracing like uses (use ftrace instead) o Coalesce formats o Realign arguments o Remove unnecessary OOM messages Signed-off-by: Joe Perches <joe@perches.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:

committed by
David S. Miller

parent
8d326d818a
commit
955a9d202f
@@ -63,8 +63,8 @@ static int __init tekram_sir_init(void)
|
||||
{
|
||||
if (tekram_delay < 1 || tekram_delay > 500)
|
||||
tekram_delay = 200;
|
||||
IRDA_DEBUG(1, "%s - using %d ms delay\n",
|
||||
tekram.driver_name, tekram_delay);
|
||||
pr_debug("%s - using %d ms delay\n",
|
||||
tekram.driver_name, tekram_delay);
|
||||
return irda_register_dongle(&tekram);
|
||||
}
|
||||
|
||||
@@ -77,8 +77,6 @@ static int tekram_open(struct sir_dev *dev)
|
||||
{
|
||||
struct qos_info *qos = &dev->qos;
|
||||
|
||||
IRDA_DEBUG(2, "%s()\n", __func__);
|
||||
|
||||
sirdev_set_dtr_rts(dev, TRUE, TRUE);
|
||||
|
||||
qos->baud_rate.bits &= IR_9600|IR_19200|IR_38400|IR_57600|IR_115200;
|
||||
@@ -92,8 +90,6 @@ static int tekram_open(struct sir_dev *dev)
|
||||
|
||||
static int tekram_close(struct sir_dev *dev)
|
||||
{
|
||||
IRDA_DEBUG(2, "%s()\n", __func__);
|
||||
|
||||
/* Power off dongle */
|
||||
sirdev_set_dtr_rts(dev, FALSE, FALSE);
|
||||
|
||||
@@ -130,8 +126,6 @@ static int tekram_change_speed(struct sir_dev *dev, unsigned speed)
|
||||
u8 byte;
|
||||
static int ret = 0;
|
||||
|
||||
IRDA_DEBUG(2, "%s()\n", __func__);
|
||||
|
||||
switch(state) {
|
||||
case SIRDEV_STATE_DONGLE_SPEED:
|
||||
|
||||
@@ -205,8 +199,6 @@ static int tekram_change_speed(struct sir_dev *dev, unsigned speed)
|
||||
|
||||
static int tekram_reset(struct sir_dev *dev)
|
||||
{
|
||||
IRDA_DEBUG(2, "%s()\n", __func__);
|
||||
|
||||
/* Clear DTR, Set RTS */
|
||||
sirdev_set_dtr_rts(dev, FALSE, TRUE);
|
||||
|
||||
|
Reference in New Issue
Block a user