Skip to content

Commit adfdaf8

Browse files
committed
bsr: fix build problem with bsr_class static cleanup
In commit e55ce9f ("bsr: make bsr_class a static const structure"), the bsr_init function was converted to handle a static class structure, but the conversion got a variable name wrong, which caused build errors so fix that up. Cc: Arnd Bergmann <arnd@arndb.de> Cc: Ivan Orlov <ivan.orlov0322@gmail.com> Reported-by: Stephen Rothwell <sfr@canb.auug.org.au> Link: https://lore.kernel.org/r/20230626142537.755ec782@canb.auug.org.au Fixes: e55ce9f ("bsr: make bsr_class a static const structure") Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
1 parent 3b7a628 commit adfdaf8

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

drivers/char/bsr.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -298,7 +298,7 @@ static int __init bsr_init(void)
298298
goto out_err;
299299

300300
ret = class_register(&bsr_class);
301-
if (err)
301+
if (ret)
302302
goto out_err_1;
303303

304304
ret = alloc_chrdev_region(&bsr_dev, 0, BSR_MAX_DEVS, "bsr");

0 commit comments

Comments
 (0)