Skip to content

Commit

Permalink
Staging: line6: fix bus_id usage
Browse files Browse the repository at this point in the history
bus_id is now gone in the linux-next tree, so replace it with dev_name()
so the code works properly.

Cc: Markus Grabner <grabner@icg.tugraz.at>
Cc: Mariusz Kozlowski <m.kozlowski@tuxland.pl>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
  • Loading branch information
Greg Kroah-Hartman committed Apr 3, 2009
1 parent 705ecec commit 4717b03
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion drivers/staging/line6/audio.c
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,8 @@ int line6_init_audio(struct usb_line6 *line6)

strcpy(card->driver, DRIVER_NAME);
strcpy(card->shortname, "Line6-USB");
sprintf(card->longname, "Line6 %s at USB %s", line6->properties->name, line6->ifcdev->bus_id); /* 80 chars - see asound.h */
sprintf(card->longname, "Line6 %s at USB %s", line6->properties->name,
dev_name(line6->ifcdev)); /* 80 chars - see asound.h */
return 0;
}

Expand Down

0 comments on commit 4717b03

Please sign in to comment.