diff options
author | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2023-06-26 12:03:21 +0300 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2023-06-26 12:05:16 +0300 |
commit | adfdaf81f9d48d8618a4d8296567248170fe7bcc (patch) | |
tree | a64190ac333ce517d662db4993b9440d91f8ed15 /drivers/char/bsr.c | |
parent | 3b7a628decfb3b385ca5169d7c415752bf40e536 (diff) | |
download | linux-adfdaf81f9d48d8618a4d8296567248170fe7bcc.tar.xz |
bsr: fix build problem with bsr_class static cleanup
In commit e55ce9fd3d8f ("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: e55ce9fd3d8f ("bsr: make bsr_class a static const structure")
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/char/bsr.c')
-rw-r--r-- | drivers/char/bsr.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/char/bsr.c b/drivers/char/bsr.c index 0654f0e6b320..12143854aeac 100644 --- a/drivers/char/bsr.c +++ b/drivers/char/bsr.c @@ -298,7 +298,7 @@ static int __init bsr_init(void) goto out_err; ret = class_register(&bsr_class); - if (err) + if (ret) goto out_err_1; ret = alloc_chrdev_region(&bsr_dev, 0, BSR_MAX_DEVS, "bsr"); |