Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

intel_th: msu: Create sysfs attributes using core driver's facility

The core intel_th driver allows subdevices to bring in their sysfs
attributes. Use this instead of taking care of them in probe and
remove.

Signed-off-by: Alexander Shishkin <alexander.shishkin@linux.intel.com>
Reviewed-by: Laurent Fert <laurent.fert@intel.com>

+1 -5
+1 -5
drivers/hwtracing/intel_th/msu.c
··· 1478 1478 if (err) 1479 1479 return err; 1480 1480 1481 - err = sysfs_create_group(&dev->kobj, &msc_output_group); 1482 - if (err) 1483 - return err; 1484 - 1485 1481 dev_set_drvdata(dev, msc); 1486 1482 1487 1483 return 0; ··· 1485 1489 1486 1490 static void intel_th_msc_remove(struct intel_th_device *thdev) 1487 1491 { 1488 - sysfs_remove_group(&thdev->dev.kobj, &msc_output_group); 1489 1492 } 1490 1493 1491 1494 static struct intel_th_driver intel_th_msc_driver = { ··· 1493 1498 .activate = intel_th_msc_activate, 1494 1499 .deactivate = intel_th_msc_deactivate, 1495 1500 .fops = &intel_th_msc_fops, 1501 + .attr_group = &msc_output_group, 1496 1502 .driver = { 1497 1503 .name = "msc", 1498 1504 .owner = THIS_MODULE,