Commit 54119bc1 authored by Pi-Hsun Shih's avatar Pi-Hsun Shih Committed by Bjorn Andersson
Browse files

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: default avatarPi-Hsun Shih <pihsun@chromium.org>
Signed-off-by: default avatarBjorn Andersson <bjorn.andersson@linaro.org>
parent b270ea40
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -493,6 +493,7 @@ static int rpmsg_dev_remove(struct device *dev)
	if (rpdev->ops->announce_destroy)
		err = rpdev->ops->announce_destroy(rpdev);

	if (rpdrv->remove)
		rpdrv->remove(rpdev);

	dev_pm_domain_detach(dev, true);