]> www.infradead.org Git - users/jedix/linux-maple.git/commit
spi: bcmbca-hsspi: Use devm_spi_alloc_host()
authorJinjie Ruan <ruanjinjie@huawei.com>
Mon, 26 Aug 2024 12:49:03 +0000 (20:49 +0800)
committerMark Brown <broonie@kernel.org>
Wed, 28 Aug 2024 19:39:08 +0000 (20:39 +0100)
commitdeb269e0394f2c75e1735132e29fa2f5181e107a
treec5b97da945c51633da9a07c9b83f2d74c3548d39
parent4439a2e92cb89028b22c5d7ba1b99e75d7d889f6
spi: bcmbca-hsspi: Use devm_spi_alloc_host()

Use devm_spi_alloc_host() so that there's no need to call
spi_controller_put() in the error path.

Signed-off-by: Jinjie Ruan <ruanjinjie@huawei.com>
Reviewed-by: William Zhang <william.zhang@broadcom.com>
Link: https://patch.msgid.link/20240826124903.3429235-3-ruanjinjie@huawei.com
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/spi/spi-bcmbca-hsspi.c