projects
/
GitHub
/
moto-9609
/
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:
a2136b3
)
ata: rb532_cf: cut drvdata assignment
author
Linus Walleij
<linus.walleij@linaro.org>
Tue, 30 May 2017 09:46:42 +0000
(11:46 +0200)
committer
Tejun Heo
<tj@kernel.org>
Tue, 30 May 2017 15:54:37 +0000
(11:54 -0400)
ata_host_alloc_pinfo() assigns the host pointer to the
struct device * drvdata, do not assign it a second time.
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Signed-off-by: Tejun Heo <tj@kernel.org>
drivers/ata/pata_rb532_cf.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/ata/pata_rb532_cf.c
b/drivers/ata/pata_rb532_cf.c
index c8b6a780a29050775f66ec60bc89773d71677683..653b9a0bf7274571c8c7d199956c5e98869fdf02 100644
(file)
--- a/
drivers/ata/pata_rb532_cf.c
+++ b/
drivers/ata/pata_rb532_cf.c
@@
-148,8
+148,6
@@
static int rb532_pata_driver_probe(struct platform_device *pdev)
if (!ah)
return -ENOMEM;
- platform_set_drvdata(pdev, ah);
-
info = devm_kzalloc(&pdev->dev, sizeof(*info), GFP_KERNEL);
if (!info)
return -ENOMEM;