staging: fsl-mc: fix resource_size.cocci warnings
authorCihangir Akturk <cakturk@gmail.com>
Wed, 2 Aug 2017 08:18:07 +0000 (11:18 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 14 Aug 2017 22:18:25 +0000 (15:18 -0700)
commita2730bc73542e60393e0f7d92e061c9e18c2056b
tree2f1ac86ecf5fdce1903ef6db4d528c2ad401dbcd
parent8652892ed44914edfb488c280ccf79301fd89117
staging: fsl-mc: fix resource_size.cocci warnings

Use resource_size() function on resource objects instead of
explicit computation.

This patch fixes the following coccinelle warning:

drivers/staging/fsl-mc/bus/dprc-driver.c:620:35-38: ERROR: Missing
resource_size with mc_dev -> regions

Signed-off-by: Cihangir Akturk <cakturk@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/fsl-mc/bus/dprc-driver.c