提交 169539c8 编写于 作者: K Kay Sievers 提交者: Greg Kroah-Hartman

avr: struct device - replace bus_id with dev_name(), dev_set_name()

Cc: Haavard Skinnemoen <hskinnemoen@atmel.com>
Signed-off-by: NKay Sievers <kay.sievers@vrfy.org>
Signed-off-by: NGreg Kroah-Hartman <gregkh@suse.de>
上级 3ada8b7e
...@@ -198,7 +198,7 @@ dump_clock(struct clk *parent, struct clkinf *r) ...@@ -198,7 +198,7 @@ dump_clock(struct clk *parent, struct clkinf *r)
unsigned i; unsigned i;
/* skip clocks coupled to devices that aren't registered */ /* skip clocks coupled to devices that aren't registered */
if (parent->dev && !parent->dev->bus_id[0] && !parent->users) if (parent->dev && !dev_name(parent->dev) && !parent->users)
return; return;
/* <nest spaces> name <pad to end> */ /* <nest spaces> name <pad to end> */
...@@ -214,7 +214,7 @@ dump_clock(struct clk *parent, struct clkinf *r) ...@@ -214,7 +214,7 @@ dump_clock(struct clk *parent, struct clkinf *r)
parent->users ? "on" : "off", /* NOTE: not-paranoid!! */ parent->users ? "on" : "off", /* NOTE: not-paranoid!! */
clk_get_rate(parent)); clk_get_rate(parent));
if (parent->dev) if (parent->dev)
seq_printf(r->s, ", for %s", parent->dev->bus_id); seq_printf(r->s, ", for %s", dev_name(parent->dev));
seq_printf(r->s, "\n"); seq_printf(r->s, "\n");
/* cost of this scan is small, but not linear... */ /* cost of this scan is small, but not linear... */
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册