From: Jonas Bonn Date: Wed, 2 Dec 2020 12:23:24 +0000 (+0100) Subject: bareudp: constify device_type declaration X-Git-Url: https://www.infradead.org/git/?a=commitdiff_plain;h=cec85994c6b4fa6beb5de61dcd03e23001b9deb5;p=linux.git bareudp: constify device_type declaration device_type may be declared as const. Signed-off-by: Jonas Bonn Link: https://lore.kernel.org/r/20201202122324.564918-1-jonas@norrbonn.se Signed-off-by: Jakub Kicinski --- diff --git a/drivers/net/bareudp.c b/drivers/net/bareudp.c index 28257bccec41..85ebd2b7e446 100644 --- a/drivers/net/bareudp.c +++ b/drivers/net/bareudp.c @@ -522,7 +522,7 @@ static const struct nla_policy bareudp_policy[IFLA_BAREUDP_MAX + 1] = { }; /* Info for udev, that this is a virtual tunnel endpoint */ -static struct device_type bareudp_type = { +static const struct device_type bareudp_type = { .name = "bareudp", };