.. | .. |
---|
| 1 | +// SPDX-License-Identifier: GPL-2.0-only |
---|
1 | 2 | /* |
---|
2 | 3 | * Copyright (C) 2013 - Virtual Open Systems |
---|
3 | 4 | * Author: Antonios Motakis <a.motakis@virtualopensystems.com> |
---|
4 | | - * |
---|
5 | | - * This program is free software; you can redistribute it and/or modify |
---|
6 | | - * it under the terms of the GNU General Public License, version 2, as |
---|
7 | | - * published by the Free Software Foundation. |
---|
8 | | - * |
---|
9 | | - * This program is distributed in the hope that it will be useful, |
---|
10 | | - * but WITHOUT ANY WARRANTY; without even the implied warranty of |
---|
11 | | - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
---|
12 | | - * GNU General Public License for more details. |
---|
13 | 5 | */ |
---|
| 6 | + |
---|
| 7 | +#define dev_fmt(fmt) "VFIO: " fmt |
---|
14 | 8 | |
---|
15 | 9 | #include <linux/device.h> |
---|
16 | 10 | #include <linux/acpi.h> |
---|
.. | .. |
---|
63 | 57 | |
---|
64 | 58 | adev = ACPI_COMPANION(dev); |
---|
65 | 59 | if (!adev) { |
---|
66 | | - pr_err("VFIO: ACPI companion device not found for %s\n", |
---|
| 60 | + dev_err(dev, "ACPI companion device not found for %s\n", |
---|
67 | 61 | vdev->name); |
---|
68 | 62 | return -ENODEV; |
---|
69 | 63 | } |
---|
.. | .. |
---|
414 | 408 | |
---|
415 | 409 | if (!reg->ioaddr) { |
---|
416 | 410 | reg->ioaddr = |
---|
417 | | - ioremap_nocache(reg->addr, reg->size); |
---|
| 411 | + ioremap(reg->addr, reg->size); |
---|
418 | 412 | |
---|
419 | 413 | if (!reg->ioaddr) |
---|
420 | 414 | return -ENOMEM; |
---|
.. | .. |
---|
491 | 485 | |
---|
492 | 486 | if (!reg->ioaddr) { |
---|
493 | 487 | reg->ioaddr = |
---|
494 | | - ioremap_nocache(reg->addr, reg->size); |
---|
| 488 | + ioremap(reg->addr, reg->size); |
---|
495 | 489 | |
---|
496 | 490 | if (!reg->ioaddr) |
---|
497 | 491 | return -ENOMEM; |
---|
.. | .. |
---|
637 | 631 | ret = device_property_read_string(dev, "compatible", |
---|
638 | 632 | &vdev->compat); |
---|
639 | 633 | if (ret) |
---|
640 | | - pr_err("VFIO: Cannot retrieve compat for %s\n", vdev->name); |
---|
| 634 | + dev_err(dev, "Cannot retrieve compat for %s\n", vdev->name); |
---|
641 | 635 | |
---|
642 | 636 | return ret; |
---|
643 | 637 | } |
---|
.. | .. |
---|
679 | 673 | |
---|
680 | 674 | ret = vfio_platform_get_reset(vdev); |
---|
681 | 675 | if (ret && vdev->reset_required) { |
---|
682 | | - pr_err("VFIO: No reset function found for device %s\n", |
---|
683 | | - vdev->name); |
---|
| 676 | + dev_err(dev, "No reset function found for device %s\n", |
---|
| 677 | + vdev->name); |
---|
684 | 678 | return ret; |
---|
685 | 679 | } |
---|
686 | 680 | |
---|
687 | 681 | group = vfio_iommu_group_get(dev); |
---|
688 | 682 | if (!group) { |
---|
689 | | - pr_err("VFIO: No IOMMU group for device %s\n", vdev->name); |
---|
| 683 | + dev_err(dev, "No IOMMU group for device %s\n", vdev->name); |
---|
690 | 684 | ret = -EINVAL; |
---|
691 | 685 | goto put_reset; |
---|
692 | 686 | } |
---|