]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - arch/avr32/mach-at32ap/clock.c
avr: struct device - replace bus_id with dev_name(), dev_set_name()
[linux-2.6-omap-h63xx.git] / arch / avr32 / mach-at32ap / clock.c
index 138a00a2a2d0c5c833723a0a6610e8baf6d42a5c..442f08c5e6415f198df5c7843b69d144fa336ed6 100644 (file)
@@ -198,7 +198,7 @@ dump_clock(struct clk *parent, struct clkinf *r)
        unsigned        i;
 
        /* 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;
 
        /* <nest spaces> name <pad to end> */
@@ -214,7 +214,7 @@ dump_clock(struct clk *parent, struct clkinf *r)
                parent->users ? "on" : "off",   /* NOTE: not-paranoid!! */
                clk_get_rate(parent));
        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");
 
        /* cost of this scan is small, but not linear... */