staging: fsl-mc: fix resource_size.cocci warnings
authorJulia Lawall <julia.lawall@lip6.fr>
Thu, 20 Jul 2017 05:49:35 +0000 (07:49 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 30 Jul 2017 15:25:03 +0000 (08:25 -0700)
commit5be271ff96ec1a19c332bbb610662d83aa86799d
tree21362698dd172a90f43b8c3d6a0cf8c235abfb32
parent03274850279c8da86358adfdad1422a850b066ac
staging: fsl-mc: fix resource_size.cocci warnings

 Use resource_size function on resource object
 instead of explicit computation.

Generated by: scripts/coccinelle/api/resource_size.cocci

Fixes: a037b7ec2eb7 ("staging: fsl-mc: allow the driver compile multi-arch")
CC: Laurentiu Tudor <laurentiu.tudor@nxp.com>
Signed-off-by: Julia Lawall <julia.lawall@lip6.fr>
Signed-off-by: Fengguang Wu <fengguang.wu@intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/fsl-mc/bus/mc-io.c