diff options
author | Andy Shevchenko <andriy.shevchenko@linux.intel.com> | 2013-07-15 16:04:36 +0400 |
---|---|---|
committer | Vinod Koul <vinod.koul@intel.com> | 2013-08-05 08:02:25 +0400 |
commit | 4aed508fc5a8314351bc3daa913a4713d52e6677 (patch) | |
tree | 444387d0774812d9eb441d1a23dcdae079776ef9 /drivers | |
parent | 985a0cb970c9338ac55a1c31b3b8d730eabcfe57 (diff) | |
download | linux-4aed508fc5a8314351bc3daa913a4713d52e6677.tar.xz |
acpi-dma: fix sparse warning
This patch fixes sparse warning:
drivers/dma/acpi-dma.c:76:21: sparse: cast to restricted __le32
Since everything in all ACPI tables is little-endian, by definition, the used
types in practice are uXX. Thus, we have to enforce __leXX if we want to
convert them to CPU order.
Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Reviewed-by: Mika Westerberg <mika.westerberg@linux.intel.com>
Acked-by: Viresh Kumar <viresh.kumar@linaro.org>
Signed-off-by: Vinod Koul <vinod.koul@intel.com>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/dma/acpi-dma.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/dma/acpi-dma.c b/drivers/dma/acpi-dma.c index 5a18f82f732a..ba7f93225851 100644 --- a/drivers/dma/acpi-dma.c +++ b/drivers/dma/acpi-dma.c @@ -73,7 +73,7 @@ static int acpi_dma_parse_resource_group(const struct acpi_csrt_group *grp, if (si->mmio_base_low != mem || si->gsi_interrupt != irq) return 0; - vendor_id = le32_to_cpu(grp->vendor_id); + vendor_id = le32_to_cpu((__force __le32)grp->vendor_id); dev_dbg(&adev->dev, "matches with %.4s%04X (rev %u)\n", (char *)&vendor_id, grp->device_id, grp->revision); |