equal
deleted
inserted
replaced
64 pr_info("bar%llu is no mem_region -> abort.\n", |
64 pr_info("bar%llu is no mem_region -> abort.\n", |
65 (uint64_t) index); |
65 (uint64_t) index); |
66 return -EIO; |
66 return -EIO; |
67 } |
67 } |
68 |
68 |
69 res = request_mem_region(bar->start, bar->len, DRV_NAME); |
69 res = request_mem_region(bar->start, bar->len, KBUILD_MODNAME); |
70 if (!res) { |
70 if (!res) { |
71 pr_info("allocate mem_region failed.\n"); |
71 pr_info("allocate mem_region failed.\n"); |
72 return -EIO; |
72 return -EIO; |
73 } |
73 } |
74 pr_debug("bar%llu at [%lx,%lx] len=%lu res: %p.\n", (uint64_t) index, |
74 pr_debug("bar%llu at [%lx,%lx] len=%lu res: %p.\n", (uint64_t) index, |
125 if (!dma->virt || !dma->phys) { |
125 if (!dma->virt || !dma->phys) { |
126 pr_info("init DMA%llu memory failed.\n", (uint64_t) channel); |
126 pr_info("init DMA%llu memory failed.\n", (uint64_t) channel); |
127 return -1; |
127 return -1; |
128 } |
128 } |
129 |
129 |
130 if (request_dma(channel, DRV_NAME)) { |
130 if (request_dma(channel, KBUILD_MODNAME)) { |
131 pr_info("request dma channel %llu failed\n", |
131 pr_info("request dma channel %llu failed\n", |
132 (uint64_t) channel); |
132 (uint64_t) channel); |
133 ccat_dma_free(dma); |
133 ccat_dma_free(dma); |
134 return -1; |
134 return -1; |
135 } |
135 } |
281 }; |
281 }; |
282 |
282 |
283 MODULE_DEVICE_TABLE(pci, pci_ids); |
283 MODULE_DEVICE_TABLE(pci, pci_ids); |
284 |
284 |
285 static struct pci_driver pci_driver = { |
285 static struct pci_driver pci_driver = { |
286 .name = DRV_NAME, |
286 .name = KBUILD_MODNAME, |
287 .id_table = pci_ids, |
287 .id_table = pci_ids, |
288 .probe = ccat_probe, |
288 .probe = ccat_probe, |
289 .remove = ccat_remove, |
289 .remove = ccat_remove, |
290 }; |
290 }; |
291 |
291 |