commit | d033f48f3a4a9279c7475891fbb060d4881c22da | [log] [tgz] |
---|---|---|
author | Varun Sethi <Varun.Sethi@freescale.com> | Tue Jun 24 19:27:15 2014 +0530 |
committer | Joerg Roedel <jroedel@suse.de> | Mon Jul 07 10:30:01 2014 +0200 |
tree | d13c87c87a2e1a30f7ee3d670c3ffdba8b50d17d | |
parent | cd3de83f147601356395b57a8673e9c5ff1e59d1 [diff] |
iommu/fsl: Fix PAMU window size check. is_power_of_2 requires an unsigned long parameter which would lead to truncation of 64 bit values on 32 bit architectures. __ffs also expects an unsigned long parameter thus won't work for 64 bit values on 32 bit architectures. Signed-off-by: Varun Sethi <Varun.Sethi@freescale.com> Tested-by: Emil Medve <Emilian.Medve@Freescale.com> Signed-off-by: Joerg Roedel <jroedel@suse.de>