]> www.infradead.org Git - users/dwmw2/qemu.git/commit
hw/sd: Remove unused 'enable' method from SDCardClass
authorPeter Maydell <peter.maydell@linaro.org>
Tue, 28 Jan 2025 10:45:17 +0000 (10:45 +0000)
committerPhilippe Mathieu-Daudé <philmd@linaro.org>
Fri, 31 Jan 2025 18:36:44 +0000 (19:36 +0100)
commit08726e8259c09592cd7415ebae55c43a12d9657d
tree87dcc5b2fbdc03ec3d7481b63f83c0493322e953
parent1671542fcefe6e00c4e039ecf1799a164f596b61
hw/sd: Remove unused 'enable' method from SDCardClass

The SDCardClass has an 'enable' method, but nothing actually invokes it.
The underlying implementation is sd_enable(), which is documented
in sdcard_legacy.h as something that should not be used and was only
present for the benefit of the now-removed nseries boards. Unlike
all the other method pointers in SDCardClass, this one doesn't have
an sdbus_foo() function wrapper in hw/sd/core.c.

Remove the unused method.

Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Message-ID: <20250128104519.3981448-10-peter.maydell@linaro.org>
Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org>
hw/sd/sd.c
include/hw/sd/sd.h