diff options
author | 2024-03-02 14:05:58 -0300 | |
---|---|---|
committer | 2024-03-05 11:21:17 -0800 | |
commit | 63767a76318c4e2b8321b9eed728ba18020aaccf (patch) | |
tree | 32ca7de2dac71ad4cfc068e6736cbd6914a3fa02 /drivers/net/ppp | |
parent | net: hns: make hnae_class constant (diff) | |
download | linux-63767a76318c4e2b8321b9eed728ba18020aaccf.tar.gz linux-63767a76318c4e2b8321b9eed728ba18020aaccf.tar.bz2 linux-63767a76318c4e2b8321b9eed728ba18020aaccf.zip |
net: wan: framer: make framer_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 framer_class structure to be declared at build time
placing it into read-only memory, instead of having to be dynamically
allocated at boot time.
Suggested-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Ricardo B. Marliere <ricardo@marliere.net>
Reviewed-by: Simon Horman <horms@kernel.org>
Acked-by: Herve Codina <herve.codina@bootlin.com>
Link: https://lore.kernel.org/r/20240302-class_cleanup-net-next-v1-2-8fa378595b93@marliere.net
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'drivers/net/ppp')
0 files changed, 0 insertions, 0 deletions