projects
/
GitHub
/
LineageOS
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a89c472
)
mmc: sdhci-cadence: refactor probe function
author
Piotr Sroka
<piotrs@cadence.com>
Tue, 21 Mar 2017 14:33:26 +0000
(14:33 +0000)
committer
Ulf Hansson
<ulf.hansson@linaro.org>
Mon, 24 Apr 2017 19:41:56 +0000
(21:41 +0200)
Use added dev variable for devm_clk_get.
Signed-off-by: Piotr Sroka <piotrs@cadence.com>
Reviewed-by: Masahiro Yamada <yamada.masahiro@socionext.com>
Acked-by: Adrian Hunter <adrian.hunter@intel.com>
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
drivers/mmc/host/sdhci-cadence.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/mmc/host/sdhci-cadence.c
b/drivers/mmc/host/sdhci-cadence.c
index 3a5f3f026b6004977955e06a4f94dc0ea0eaafc1..7797e98a7541d1ce4d485c04a5913f0c979c6bb9 100644
(file)
--- a/
drivers/mmc/host/sdhci-cadence.c
+++ b/
drivers/mmc/host/sdhci-cadence.c
@@
-305,7
+305,7
@@
static int sdhci_cdns_probe(struct platform_device *pdev)
int ret;
struct device *dev = &pdev->dev;
- clk = devm_clk_get(
&pdev->
dev, NULL);
+ clk = devm_clk_get(dev, NULL);
if (IS_ERR(clk))
return PTR_ERR(clk);