提交 1945ca8c 编写于 作者: Y Yang Yingliang 提交者: Xie XiuQi

Revert "driver core: Postpone DMA tear-down until after devres release for probe failure"

hulk inclusion
category: cleanup
bugzilla: 14629
CVE: NA

-------------------------------------------------

This reverts commit 437f99ac3ba010dcf9b2c824995a41fe643c18f7.
Use LTS patch to replace this patch.
Signed-off-by: NYang Yingliang <yangyingliang@huawei.com>
上级 8a34e087
......@@ -482,7 +482,7 @@ static int really_probe(struct device *dev, struct device_driver *drv)
ret = dma_configure(dev);
if (ret)
goto probe_failed;
goto dma_failed;
if (driver_sysfs_add(dev)) {
printk(KERN_ERR "%s: driver_sysfs_add(%s) failed\n",
......@@ -537,13 +537,14 @@ static int really_probe(struct device *dev, struct device_driver *drv)
goto done;
probe_failed:
dma_deconfigure(dev);
dma_failed:
if (dev->bus)
blocking_notifier_call_chain(&dev->bus->p->bus_notifier,
BUS_NOTIFY_DRIVER_NOT_BOUND, dev);
pinctrl_bind_failed:
device_links_no_driver(dev);
devres_release_all(dev);
arch_teardown_dma_ops(dev);
driver_sysfs_remove(dev);
dev->driver = NULL;
dev_set_drvdata(dev, NULL);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册