mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-07-23 07:12:09 +00:00
rpmsg: core: Make remove handler for rpmsg driver optional.
Most other bus (for example, SPI, i2c) have the remove handler for driver optional. Make remove handler for rpmsg driver optional too. Signed-off-by: Pi-Hsun Shih <pihsun@chromium.org> Signed-off-by: Bjorn Andersson <bjorn.andersson@linaro.org>
This commit is contained in:
parent
b270ea40b3
commit
54119bc111
1 changed files with 2 additions and 1 deletions
|
@ -493,7 +493,8 @@ static int rpmsg_dev_remove(struct device *dev)
|
|||
if (rpdev->ops->announce_destroy)
|
||||
err = rpdev->ops->announce_destroy(rpdev);
|
||||
|
||||
rpdrv->remove(rpdev);
|
||||
if (rpdrv->remove)
|
||||
rpdrv->remove(rpdev);
|
||||
|
||||
dev_pm_domain_detach(dev, true);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue