]> www.infradead.org Git - users/jedix/linux-maple.git/commitdiff
netdev: make net_device_ops const
authorstephen hemminger <shemminger@vyatta.com>
Thu, 5 Jan 2012 19:10:25 +0000 (19:10 +0000)
committerMaxim Uvarov <maxim.uvarov@oracle.com>
Mon, 7 May 2012 21:44:12 +0000 (14:44 -0700)
More drivers where net_device_ops should be const.

Signed-off-by: Stephen Hemminger <shemminger@vyatta.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/benet/be_main.c

index a770571de685b8feb1c8cbc669ba430e55d326c3..48dff7d747d41d12189ce8197332d10bc741b408 100644 (file)
@@ -3076,7 +3076,7 @@ fw_exit:
        return status;
 }
 
-static struct net_device_ops be_netdev_ops = {
+static const struct net_device_ops be_netdev_ops = {
        .ndo_open               = be_open,
        .ndo_stop               = be_close,
        .ndo_start_xmit         = be_xmit,