aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGreg Kroah-Hartman <[email protected]>2023-06-26 11:03:21 +0200
committerGreg Kroah-Hartman <[email protected]>2023-06-26 11:05:16 +0200
commitadfdaf81f9d48d8618a4d8296567248170fe7bcc (patch)
treea64190ac333ce517d662db4993b9440d91f8ed15
parent3b7a628decfb3b385ca5169d7c415752bf40e536 (diff)
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 <[email protected]> Cc: Ivan Orlov <[email protected]> Reported-by: Stephen Rothwell <[email protected]> Link: https://lore.kernel.org/r/[email protected] Fixes: e55ce9fd3d8f ("bsr: make bsr_class a static const structure") Signed-off-by: Greg Kroah-Hartman <[email protected]>
-rw-r--r--drivers/char/bsr.c2
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");