aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/media/rc
diff options
context:
space:
mode:
authorMauro Carvalho Chehab <mchehab+huawei@kernel.org>2020-09-01 14:27:42 +0200
committerMauro Carvalho Chehab <mchehab+huawei@kernel.org>2020-09-03 11:11:40 +0200
commit73c016543dbad406443d413f9c25fac32dcf5131 (patch)
tree4befda752e77ab673bf3a399246d78b8310b5c59 /drivers/media/rc
parentmedia: tda10021: avoid casts when using symbol_rate (diff)
downloadlinux-dev-73c016543dbad406443d413f9c25fac32dcf5131.tar.xz
linux-dev-73c016543dbad406443d413f9c25fac32dcf5131.zip
media: serial_ir: use the right type for a dma address
As warned by smatch: drivers/media/rc/serial_ir.c:550 serial_ir_probe() warn: should '8 << ioshift' be a 64 bit type? the "8" constant should be unsigned long. Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
Diffstat (limited to 'drivers/media/rc')
-rw-r--r--drivers/media/rc/serial_ir.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/media/rc/serial_ir.c b/drivers/media/rc/serial_ir.c
index d77507ba0fb5..5b5b3203f5a0 100644
--- a/drivers/media/rc/serial_ir.c
+++ b/drivers/media/rc/serial_ir.c
@@ -547,7 +547,7 @@ static int serial_ir_probe(struct platform_device *dev)
/* Reserve io region. */
if ((iommap &&
- (devm_request_mem_region(&dev->dev, iommap, 8 << ioshift,
+ (devm_request_mem_region(&dev->dev, iommap, 8UL << ioshift,
KBUILD_MODNAME) == NULL)) ||
(!iommap && (devm_request_region(&dev->dev, io, 8,
KBUILD_MODNAME) == NULL))) {