diff options
Diffstat (limited to 'drivers/media/video/pvrusb2/pvrusb2-sysfs.c')
-rw-r--r-- | drivers/media/video/pvrusb2/pvrusb2-sysfs.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/media/video/pvrusb2/pvrusb2-sysfs.c b/drivers/media/video/pvrusb2/pvrusb2-sysfs.c index 733680f21317..e641cd971453 100644 --- a/drivers/media/video/pvrusb2/pvrusb2-sysfs.c +++ b/drivers/media/video/pvrusb2/pvrusb2-sysfs.c | |||
@@ -628,10 +628,10 @@ static void class_dev_create(struct pvr2_sysfs *sfp, | |||
628 | 628 | ||
629 | class_dev->class = &class_ptr->class; | 629 | class_dev->class = &class_ptr->class; |
630 | if (pvr2_hdw_get_sn(sfp->channel.hdw)) { | 630 | if (pvr2_hdw_get_sn(sfp->channel.hdw)) { |
631 | snprintf(class_dev->bus_id, BUS_ID_SIZE, "sn-%lu", | 631 | dev_set_name(class_dev, "sn-%lu", |
632 | pvr2_hdw_get_sn(sfp->channel.hdw)); | 632 | pvr2_hdw_get_sn(sfp->channel.hdw)); |
633 | } else if (pvr2_hdw_get_unit_number(sfp->channel.hdw) >= 0) { | 633 | } else if (pvr2_hdw_get_unit_number(sfp->channel.hdw) >= 0) { |
634 | snprintf(class_dev->bus_id, BUS_ID_SIZE, "unit-%c", | 634 | dev_set_name(class_dev, "unit-%c", |
635 | pvr2_hdw_get_unit_number(sfp->channel.hdw) + 'a'); | 635 | pvr2_hdw_get_unit_number(sfp->channel.hdw) + 'a'); |
636 | } else { | 636 | } else { |
637 | kfree(class_dev); | 637 | kfree(class_dev); |