MIPS: SGI-IP27: Free some unused memory
authorChristophe JAILLET <christophe.jaillet@wanadoo.fr>
Sat, 23 Apr 2022 13:24:03 +0000 (15:24 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 26 Oct 2022 10:34:36 +0000 (12:34 +0200)
commit993b13abde17bda5ba3b9ec0ba655b60f04f8656
tree30392e23e0e5774725774c9691a4cd5b1f0e6e21
parent959855093f94554083406c6bec846db13e1fbe14
MIPS: SGI-IP27: Free some unused memory

[ Upstream commit 33d7085682b4aa212ebfadbc21da81dfefaaac16 ]

platform_device_add_data() duplicates the memory it is passed. So we can
free some memory to save a few bytes that would remain unused otherwise.

Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr>
Signed-off-by: Thomas Bogendoerfer <tsbogend@alpha.franken.de>
Stable-dep-of: 11bec9cba4de ("MIPS: SGI-IP27: Fix platform-device leak in bridge_platform_create()")
Signed-off-by: Sasha Levin <sashal@kernel.org>
arch/mips/sgi-ip27/ip27-xtalk.c