summaryrefslogtreecommitdiff
path: root/drivers/staging/sm750fb
diff options
context:
space:
mode:
authorMike Rapoport <mike.rapoport@gmail.com>2015-10-13 06:26:46 (GMT)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2015-10-17 05:05:40 (GMT)
commitb02f9240e0e02a030883e3bb7f712f5e1ea58ac9 (patch)
tree79eb3dc9a00a53eaeae876a5e73de63e9bcb5a33 /drivers/staging/sm750fb
parent7092d76f144dc852b2143fe3daabc66fb794dba6 (diff)
downloadlinux-b02f9240e0e02a030883e3bb7f712f5e1ea58ac9.tar.xz
staging: sm750fb: remove some unnecessary castings
The clock divisor calculations in setMasterClock and setMemoryClock unnecessaryly cast unsigned int to unsigned int. Removing the casting. Signed-off-by: Mike Rapoport <mike.rapoport@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/staging/sm750fb')
-rw-r--r--drivers/staging/sm750fb/ddk750_chip.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/staging/sm750fb/ddk750_chip.c b/drivers/staging/sm750fb/ddk750_chip.c
index 77f3e43..bab3d91 100644
--- a/drivers/staging/sm750fb/ddk750_chip.c
+++ b/drivers/staging/sm750fb/ddk750_chip.c
@@ -100,7 +100,7 @@ static void setMemoryClock(unsigned int frequency)
frequency = MHz(336);
/* Calculate the divisor */
- divisor = (unsigned int)roundedDiv(get_mxclk_freq(), frequency);
+ divisor = roundedDiv(get_mxclk_freq(), frequency);
/* Set the corresponding divisor in the register. */
ulReg = PEEK32(CURRENT_GATE);
@@ -147,7 +147,7 @@ static void setMasterClock(unsigned int frequency)
frequency = MHz(190);
/* Calculate the divisor */
- divisor = (unsigned int)roundedDiv(get_mxclk_freq(), frequency);
+ divisor = roundedDiv(get_mxclk_freq(), frequency);
/* Set the corresponding divisor in the register. */
ulReg = PEEK32(CURRENT_GATE);