Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 653eb189 authored by Chris Lew's avatar Chris Lew
Browse files

rpmsg: glink: spss: Unmap mailbox descriptors correctly



The mailbox descriptors registers are mapped using the devm variant of
ioremap. Switch the unmap function to the devm variant to prevent unmap
warnings when the glink device is unregistered.

Change-Id: Iafe0fcb673f215479ca13b1e0df0d96bdbc87fc8
Signed-off-by: default avatarChris Lew <clew@codeaurora.org>
parent bafa59ad
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -210,8 +210,8 @@ static int glink_spss_advertise_cfg(struct device *dev,

	*spss_addr = cpu_to_le64(addr);
	*spss_size = cpu_to_le32(size);
	iounmap(spss_addr);
	iounmap(spss_size);
	devm_iounmap(dev, spss_addr);
	devm_iounmap(dev, spss_size);

	return 0;
}