summaryrefslogtreecommitdiff
path: root/drivers/usb/cdns3/cdns3-debug.h
diff options
context:
space:
mode:
authorRicardo B. Marliere <ricardo@marliere.net>2024-03-08 09:12:47 -0300
committerKent Overstreet <kent.overstreet@linux.dev>2024-04-13 14:33:16 -0400
commit3d09c193c510c777b531268487b9e3f8d46536ef (patch)
tree1e6d17d83fdc0fdb74a737220c4f586bc75b366c /drivers/usb/cdns3/cdns3-debug.h
parentf3157e6ac3ec355078f70748f55d5148b6e32995 (diff)
bcachefs: chardev: make bch_chardev_class constant
Since commit 43a7206b0963 ("driver core: class: make class_register() take a const *"), the driver core allows for struct class to be in read-only memory, so move the bch_chardev_class structure to be declared at build time placing it into read-only memory, instead of having to be dynamically allocated at boot time. Also, correctly clean up after failing paths in bch2_chardev_init(). Cc: Hongbo Li <lihongbo22@huawei.com> Cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org> Suggested-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org> Signed-off-by: Ricardo B. Marliere <ricardo@marliere.net> Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
Diffstat (limited to 'drivers/usb/cdns3/cdns3-debug.h')
0 files changed, 0 insertions, 0 deletions