|
@@ -483,8 +483,10 @@ static int __devexit sdhci_s3c_remove(struct platform_device *pdev)
|
|
sdhci_remove_host(host, 1);
|
|
sdhci_remove_host(host, 1);
|
|
|
|
|
|
for (ptr = 0; ptr < 3; ptr++) {
|
|
for (ptr = 0; ptr < 3; ptr++) {
|
|
- clk_disable(sc->clk_bus[ptr]);
|
|
|
|
- clk_put(sc->clk_bus[ptr]);
|
|
|
|
|
|
+ if (sc->clk_bus[ptr]) {
|
|
|
|
+ clk_disable(sc->clk_bus[ptr]);
|
|
|
|
+ clk_put(sc->clk_bus[ptr]);
|
|
|
|
+ }
|
|
}
|
|
}
|
|
clk_disable(sc->clk_io);
|
|
clk_disable(sc->clk_io);
|
|
clk_put(sc->clk_io);
|
|
clk_put(sc->clk_io);
|