Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit bc4b4aa5 authored by H Hartley Sweeten's avatar H Hartley Sweeten Committed by Greg Kroah-Hartman
Browse files

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: default avatarH Hartley Sweeten <hsweeten@visionengravers.com>
Cc: Ian Abbott <abbotti@mev.co.uk>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent b84a9ce5
Loading
Loading
Loading
Loading
+3 −9
Original line number Original line Diff line number Diff line
@@ -1332,8 +1332,6 @@ static int pci1710_attach(struct comedi_device *dev,
	int ret, subdev, n_subdevices;
	int ret, subdev, n_subdevices;
	unsigned int irq;
	unsigned int irq;


	dev_info(dev->class_dev, DRV_NAME ": attach\n");

	ret = alloc_private(dev, sizeof(*devpriv));
	ret = alloc_private(dev, sizeof(*devpriv));
	if (ret < 0)
	if (ret < 0)
		return -ENOMEM;
		return -ENOMEM;
@@ -1377,15 +1375,8 @@ static int pci1710_attach(struct comedi_device *dev,
			if (request_irq(irq, interrupt_service_pci1710,
			if (request_irq(irq, interrupt_service_pci1710,
					IRQF_SHARED, "Advantech PCI-1710",
					IRQF_SHARED, "Advantech PCI-1710",
					dev)) {
					dev)) {
				dev_dbg(dev->class_dev,
					"unable to allocate IRQ %d, DISABLING IT",
					irq);
				irq = 0;	/* Can't use IRQ */
				irq = 0;	/* Can't use IRQ */
			} else {
				dev_dbg(dev->class_dev, "irq=%u", irq);
			}
			}
		} else {
			dev_dbg(dev->class_dev, "IRQ disabled");
		}
		}
	} else {
	} else {
		irq = 0;
		irq = 0;
@@ -1480,6 +1471,9 @@ static int pci1710_attach(struct comedi_device *dev,


	devpriv->valid = 1;
	devpriv->valid = 1;


	dev_info(dev->class_dev, "%s attached, irq %sabled\n",
		dev->board_name, dev->irq ? "en" : "dis");

	return 0;
	return 0;
}
}