clk: fsl-sai: fix memory leak
authorMichael Walle <michael@walle.cc>
Thu, 5 Nov 2020 19:27:44 +0000 (20:27 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 30 Dec 2020 10:53:42 +0000 (11:53 +0100)
commit45d670efcb0b3efbf5a356353b9cada31473acf8
treeb65a5ac92cda73e44f438716f727348c731288f7
parent608918e878d4e0b44e141c2796d2e26ba4bfa0e5
clk: fsl-sai: fix memory leak

[ Upstream commit e81bed419f032824e7ddf8b5630153be6637e480 ]

If the device is removed we don't unregister the composite clock. Fix
that.

Fixes: 9cd10205227c ("clk: fsl-sai: new driver")
Signed-off-by: Michael Walle <michael@walle.cc>
Link: https://lore.kernel.org/r/20201105192746.19564-2-michael@walle.cc
Signed-off-by: Stephen Boyd <sboyd@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/clk/clk-fsl-sai.c