aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorH Hartley Sweeten <hartleys@visionengravers.com>2012-09-11 18:08:06 -0400
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2012-09-12 12:29:22 -0400
commitbc4b4aa5f5153d42d03244c2cbb19546f6200aef (patch)
tree7c2bd4e24d5b58e2296eefc185a099f6f6426190
parentb84a9ce54430225053667cce146f06d6ee257372 (diff)
staging: comedi: adv_pci1710: remove board attach noise
Remove the kernel message noise during the attach of the board. Use a simple/clean dev_info at the end of the attach. Signed-off-by: H Hartley Sweeten <hsweeten@visionengravers.com> Cc: Ian Abbott <abbotti@mev.co.uk> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
-rw-r--r--drivers/staging/comedi/drivers/adv_pci1710.c12
1 files changed, 3 insertions, 9 deletions
diff --git a/drivers/staging/comedi/drivers/adv_pci1710.c b/drivers/staging/comedi/drivers/adv_pci1710.c
index 699f267004ad..e589684415ee 100644
--- a/drivers/staging/comedi/drivers/adv_pci1710.c
+++ b/drivers/staging/comedi/drivers/adv_pci1710.c
@@ -1332,8 +1332,6 @@ static int pci1710_attach(struct comedi_device *dev,
1332 int ret, subdev, n_subdevices; 1332 int ret, subdev, n_subdevices;
1333 unsigned int irq; 1333 unsigned int irq;
1334 1334
1335 dev_info(dev->class_dev, DRV_NAME ": attach\n");
1336
1337 ret = alloc_private(dev, sizeof(*devpriv)); 1335 ret = alloc_private(dev, sizeof(*devpriv));
1338 if (ret < 0) 1336 if (ret < 0)
1339 return -ENOMEM; 1337 return -ENOMEM;
@@ -1377,15 +1375,8 @@ static int pci1710_attach(struct comedi_device *dev,
1377 if (request_irq(irq, interrupt_service_pci1710, 1375 if (request_irq(irq, interrupt_service_pci1710,
1378 IRQF_SHARED, "Advantech PCI-1710", 1376 IRQF_SHARED, "Advantech PCI-1710",
1379 dev)) { 1377 dev)) {
1380 dev_dbg(dev->class_dev,
1381 "unable to allocate IRQ %d, DISABLING IT",
1382 irq);
1383 irq = 0; /* Can't use IRQ */ 1378 irq = 0; /* Can't use IRQ */
1384 } else {
1385 dev_dbg(dev->class_dev, "irq=%u", irq);
1386 } 1379 }
1387 } else {
1388 dev_dbg(dev->class_dev, "IRQ disabled");
1389 } 1380 }
1390 } else { 1381 } else {
1391 irq = 0; 1382 irq = 0;
@@ -1480,6 +1471,9 @@ static int pci1710_attach(struct comedi_device *dev,
1480 1471
1481 devpriv->valid = 1; 1472 devpriv->valid = 1;
1482 1473
1474 dev_info(dev->class_dev, "%s attached, irq %sabled\n",
1475 dev->board_name, dev->irq ? "en" : "dis");
1476
1483 return 0; 1477 return 0;
1484} 1478}
1485 1479