mirror of
git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2025-08-04 16:25:34 +00:00
net: bridge: constify the struct device_type usage
Since commit aed65af1cc
("drivers: make device_type const"), the driver
core can properly handle constant struct device_type. Move the br_type
variable to be a constant structure as well, placing it into read-only
memory which can not be modified at runtime.
Cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Ricardo B. Marliere <ricardo@marliere.net>
Reviewed-by: Simon Horman <horms@kernel.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
7e0acba3b4
commit
bbc7e4cc21
1 changed files with 1 additions and 1 deletions
|
@ -474,7 +474,7 @@ static const struct net_device_ops br_netdev_ops = {
|
|||
.ndo_fill_forward_path = br_fill_forward_path,
|
||||
};
|
||||
|
||||
static struct device_type br_type = {
|
||||
static const struct device_type br_type = {
|
||||
.name = "bridge",
|
||||
};
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue