diff options
Diffstat (limited to 'drivers/tty/serial/sc16is7xx.c')
-rw-r--r-- | drivers/tty/serial/sc16is7xx.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/drivers/tty/serial/sc16is7xx.c b/drivers/tty/serial/sc16is7xx.c index 65792a3539d0..243c96025053 100644 --- a/drivers/tty/serial/sc16is7xx.c +++ b/drivers/tty/serial/sc16is7xx.c | |||
@@ -1168,7 +1168,10 @@ static int sc16is7xx_probe(struct device *dev, | |||
1168 | else | 1168 | else |
1169 | return PTR_ERR(s->clk); | 1169 | return PTR_ERR(s->clk); |
1170 | } else { | 1170 | } else { |
1171 | clk_prepare_enable(s->clk); | 1171 | ret = clk_prepare_enable(s->clk); |
1172 | if (ret) | ||
1173 | return ret; | ||
1174 | |||
1172 | freq = clk_get_rate(s->clk); | 1175 | freq = clk_get_rate(s->clk); |
1173 | } | 1176 | } |
1174 | 1177 | ||