diff options
-rw-r--r-- | drivers/mfd/ti_am335x_tscadc.c | 6 | ||||
-rw-r--r-- | include/linux/mfd/ti_am335x_tscadc.h | 1 |
2 files changed, 1 insertions, 6 deletions
diff --git a/drivers/mfd/ti_am335x_tscadc.c b/drivers/mfd/ti_am335x_tscadc.c index b003a16ba227..e0852ecbc767 100644 --- a/drivers/mfd/ti_am335x_tscadc.c +++ b/drivers/mfd/ti_am335x_tscadc.c | |||
@@ -197,11 +197,7 @@ static int ti_tscadc_probe(struct platform_device *pdev) | |||
197 | clock_rate = clk_get_rate(clk); | 197 | clock_rate = clk_get_rate(clk); |
198 | clk_put(clk); | 198 | clk_put(clk); |
199 | clk_value = clock_rate / ADC_CLK; | 199 | clk_value = clock_rate / ADC_CLK; |
200 | if (clk_value < MAX_CLK_DIV) { | 200 | |
201 | dev_err(&pdev->dev, "clock input less than min clock requirement\n"); | ||
202 | err = -EINVAL; | ||
203 | goto err_disable_clk; | ||
204 | } | ||
205 | /* TSCADC_CLKDIV needs to be configured to the value minus 1 */ | 201 | /* TSCADC_CLKDIV needs to be configured to the value minus 1 */ |
206 | clk_value = clk_value - 1; | 202 | clk_value = clk_value - 1; |
207 | tscadc_writel(tscadc, REG_CLKDIV, clk_value); | 203 | tscadc_writel(tscadc, REG_CLKDIV, clk_value); |
diff --git a/include/linux/mfd/ti_am335x_tscadc.h b/include/linux/mfd/ti_am335x_tscadc.h index 8d73fe29796a..71bb41c32a64 100644 --- a/include/linux/mfd/ti_am335x_tscadc.h +++ b/include/linux/mfd/ti_am335x_tscadc.h | |||
@@ -114,7 +114,6 @@ | |||
114 | #define CNTRLREG_TSCENB BIT(7) | 114 | #define CNTRLREG_TSCENB BIT(7) |
115 | 115 | ||
116 | #define ADC_CLK 3000000 | 116 | #define ADC_CLK 3000000 |
117 | #define MAX_CLK_DIV 7 | ||
118 | #define TOTAL_STEPS 16 | 117 | #define TOTAL_STEPS 16 |
119 | #define TOTAL_CHANNELS 8 | 118 | #define TOTAL_CHANNELS 8 |
120 | 119 | ||