diff options
author | Artem Bityutskiy <artem.bityutskiy@linux.intel.com> | 2012-08-17 06:05:41 -0400 |
---|---|---|
committer | David Woodhouse <David.Woodhouse@intel.com> | 2012-09-29 09:53:30 -0400 |
commit | 036a1ac1f4ac8cdfed4574738c63aba2e81a13e4 (patch) | |
tree | 4a1791482312eb12dd5f8dc10fc457e706adb542 /drivers/mtd/devices | |
parent | b5170978b421222ba4c3d64d1ebd4a03d64ae42e (diff) |
mtd: spear_smi: fix compilation warning
drivers/mtd/devices/spear_smi.c: In function 'spear_smi_probe':
drivers/mtd/devices/spear_smi.c:984:2: warning: comparison of unsigned expression < 0 is always false [-Wtype-limits]
Signed-off-by: Artem Bityutskiy <artem.bityutskiy@linux.intel.com>
Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
Diffstat (limited to 'drivers/mtd/devices')
-rw-r--r-- | drivers/mtd/devices/spear_smi.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/mtd/devices/spear_smi.c b/drivers/mtd/devices/spear_smi.c index 7c10466766c7..421bc65ae829 100644 --- a/drivers/mtd/devices/spear_smi.c +++ b/drivers/mtd/devices/spear_smi.c | |||
@@ -981,7 +981,7 @@ static int __devinit spear_smi_probe(struct platform_device *pdev) | |||
981 | dev->pdev = pdev; | 981 | dev->pdev = pdev; |
982 | dev->clk_rate = pdata->clk_rate; | 982 | dev->clk_rate = pdata->clk_rate; |
983 | 983 | ||
984 | if (dev->clk_rate < 0 || dev->clk_rate > SMI_MAX_CLOCK_FREQ) | 984 | if (dev->clk_rate > SMI_MAX_CLOCK_FREQ) |
985 | dev->clk_rate = SMI_MAX_CLOCK_FREQ; | 985 | dev->clk_rate = SMI_MAX_CLOCK_FREQ; |
986 | 986 | ||
987 | dev->num_flashes = pdata->num_flashes; | 987 | dev->num_flashes = pdata->num_flashes; |