mirror of
https://github.com/corundum/corundum.git
synced 2025-01-30 08:32:52 +08:00
Use DRIVER_NAME define
This commit is contained in:
parent
0965c77b8e
commit
c249081dd2
@ -120,7 +120,7 @@ static int mqnic_pci_probe(struct pci_dev *pdev, const struct pci_device_id *ent
|
||||
|
||||
int k = 0;
|
||||
|
||||
dev_info(dev, "mqnic PCI probe");
|
||||
dev_info(dev, DRIVER_NAME " PCI probe");
|
||||
dev_info(dev, " Vendor: 0x%04x", pdev->vendor);
|
||||
dev_info(dev, " Device: 0x%04x", pdev->device);
|
||||
dev_info(dev, " Class: 0x%06x", pdev->class);
|
||||
@ -295,7 +295,7 @@ static int mqnic_pci_probe(struct pci_dev *pdev, const struct pci_device_id *ent
|
||||
// Set up interrupts
|
||||
for (k = 0; k < mqnic->irq_count; k++)
|
||||
{
|
||||
ret = pci_request_irq(pdev, k, mqnic_interrupt, NULL, mqnic, "mqnic%d-%d", mqnic->id, k);
|
||||
ret = pci_request_irq(pdev, k, mqnic_interrupt, NULL, mqnic, "%s-%d", mqnic->name, k);
|
||||
if (ret < 0)
|
||||
{
|
||||
dev_err(dev, "Failed to request IRQ");
|
||||
@ -408,7 +408,7 @@ static void mqnic_pci_remove(struct pci_dev *pdev)
|
||||
|
||||
int k = 0;
|
||||
|
||||
dev_info(&pdev->dev, "mqnic PCI remove");
|
||||
dev_info(&pdev->dev, DRIVER_NAME " PCI remove");
|
||||
|
||||
misc_deregister(&mqnic->misc_dev);
|
||||
|
||||
@ -445,7 +445,7 @@ static void mqnic_pci_remove(struct pci_dev *pdev)
|
||||
|
||||
static void mqnic_pci_shutdown(struct pci_dev *pdev)
|
||||
{
|
||||
dev_info(&pdev->dev, "mqnic PCI shutdown");
|
||||
dev_info(&pdev->dev, DRIVER_NAME " PCI shutdown");
|
||||
|
||||
mqnic_pci_remove(pdev);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user