We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6f2aa55 commit e7b5d63Copy full SHA for e7b5d63
drivers/mmc/host/sdhci-brcmstb.c
@@ -161,6 +161,15 @@ static int sdhci_brcmstb_probe(struct platform_device *pdev)
161
return res;
162
}
163
164
+static void sdhci_brcmstb_shutdown(struct platform_device *pdev)
165
+{
166
+ int ret;
167
+
168
+ ret = sdhci_pltfm_unregister(pdev);
169
+ if (ret)
170
+ dev_err(&pdev->dev, "failed to shutdown\n");
171
+}
172
173
MODULE_DEVICE_TABLE(of, sdhci_brcm_of_match);
174
175
static struct platform_driver sdhci_brcmstb_driver = {
@@ -171,6 +180,7 @@ static struct platform_driver sdhci_brcmstb_driver = {
180
},
181
.probe = sdhci_brcmstb_probe,
182
.remove = sdhci_pltfm_unregister,
183
+ .shutdown = sdhci_brcmstb_shutdown,
184
};
185
176
186
module_platform_driver(sdhci_brcmstb_driver);
0 commit comments