diff options
Diffstat (limited to 'drivers')
| -rw-r--r-- | drivers/soc/qcom/qcom_gsbi.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/drivers/soc/qcom/qcom_gsbi.c b/drivers/soc/qcom/qcom_gsbi.c index 09c669e70d63..038abc377fdb 100644 --- a/drivers/soc/qcom/qcom_gsbi.c +++ b/drivers/soc/qcom/qcom_gsbi.c | |||
| @@ -138,7 +138,7 @@ static int gsbi_probe(struct platform_device *pdev) | |||
| 138 | struct resource *res; | 138 | struct resource *res; |
| 139 | void __iomem *base; | 139 | void __iomem *base; |
| 140 | struct gsbi_info *gsbi; | 140 | struct gsbi_info *gsbi; |
| 141 | int i; | 141 | int i, ret; |
| 142 | u32 mask, gsbi_num; | 142 | u32 mask, gsbi_num; |
| 143 | const struct crci_config *config = NULL; | 143 | const struct crci_config *config = NULL; |
| 144 | 144 | ||
| @@ -221,7 +221,10 @@ static int gsbi_probe(struct platform_device *pdev) | |||
| 221 | 221 | ||
| 222 | platform_set_drvdata(pdev, gsbi); | 222 | platform_set_drvdata(pdev, gsbi); |
| 223 | 223 | ||
| 224 | return of_platform_populate(node, NULL, NULL, &pdev->dev); | 224 | ret = of_platform_populate(node, NULL, NULL, &pdev->dev); |
| 225 | if (ret) | ||
| 226 | clk_disable_unprepare(gsbi->hclk); | ||
| 227 | return ret; | ||
| 225 | } | 228 | } |
| 226 | 229 | ||
| 227 | static int gsbi_remove(struct platform_device *pdev) | 230 | static int gsbi_remove(struct platform_device *pdev) |
