summaryrefslogtreecommitdiff
path: root/net/bridge
diff options
context:
space:
mode:
authorGeliang Tang <geliangtang@163.com>2015-12-23 15:42:21 +0300
committerDavid S. Miller <davem@davemloft.net>2015-12-24 06:26:48 +0300
commitaeb7ed14fe5df3a4ce019c8d4ce0b2922a091196 (patch)
tree7a98269b32693630e3ffa3e811728fe18c77f554 /net/bridge
parent8099c9edfd96d91b1f01b31ca5270ba3bceb0c9b (diff)
downloadlinux-aeb7ed14fe5df3a4ce019c8d4ce0b2922a091196.tar.xz
bridge: use kobj_to_dev instead of to_dev
kobj_to_dev has been defined in linux/device.h, so I replace to_dev with it. Signed-off-by: Geliang Tang <geliangtang@163.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/bridge')
-rw-r--r--net/bridge/br_sysfs_br.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/net/bridge/br_sysfs_br.c b/net/bridge/br_sysfs_br.c
index 8365bd53c421..6b8091407ca3 100644
--- a/net/bridge/br_sysfs_br.c
+++ b/net/bridge/br_sysfs_br.c
@@ -22,7 +22,6 @@
#include "br_private.h"
-#define to_dev(obj) container_of(obj, struct device, kobj)
#define to_bridge(cd) ((struct net_bridge *)netdev_priv(to_net_dev(cd)))
/*
@@ -814,7 +813,7 @@ static ssize_t brforward_read(struct file *filp, struct kobject *kobj,
struct bin_attribute *bin_attr,
char *buf, loff_t off, size_t count)
{
- struct device *dev = to_dev(kobj);
+ struct device *dev = kobj_to_dev(kobj);
struct net_bridge *br = to_bridge(dev);
int n;