@@ -75,11 +75,6 @@ struct odvp_attr {
75
75
76
76
static BIN_ATTR_SIMPLE_RO (data_vault );
77
77
78
- static struct bin_attribute * data_attributes [] = {
79
- & bin_attr_data_vault ,
80
- NULL ,
81
- };
82
-
83
78
static ssize_t imok_store (struct device * dev , struct device_attribute * attr ,
84
79
const char * buf , size_t count )
85
80
{
@@ -108,10 +103,6 @@ static const struct attribute_group imok_attribute_group = {
108
103
.attrs = imok_attr ,
109
104
};
110
105
111
- static const struct attribute_group data_attribute_group = {
112
- .bin_attrs = data_attributes ,
113
- };
114
-
115
106
static ssize_t available_uuids_show (struct device * dev ,
116
107
struct device_attribute * attr ,
117
108
char * buf )
@@ -624,8 +615,7 @@ static int int3400_thermal_probe(struct platform_device *pdev)
624
615
}
625
616
626
617
if (!ZERO_OR_NULL_PTR (priv -> data_vault )) {
627
- result = sysfs_create_group (& pdev -> dev .kobj ,
628
- & data_attribute_group );
618
+ result = device_create_bin_file (& pdev -> dev , & bin_attr_data_vault );
629
619
if (result )
630
620
goto free_uuid ;
631
621
}
@@ -648,7 +638,7 @@ static int int3400_thermal_probe(struct platform_device *pdev)
648
638
free_sysfs :
649
639
cleanup_odvp (priv );
650
640
if (!ZERO_OR_NULL_PTR (priv -> data_vault )) {
651
- sysfs_remove_group (& pdev -> dev . kobj , & data_attribute_group );
641
+ device_remove_bin_file (& pdev -> dev , & bin_attr_data_vault );
652
642
kfree (priv -> data_vault );
653
643
}
654
644
free_uuid :
@@ -683,7 +673,7 @@ static void int3400_thermal_remove(struct platform_device *pdev)
683
673
acpi_thermal_rel_misc_device_remove (priv -> adev -> handle );
684
674
685
675
if (!ZERO_OR_NULL_PTR (priv -> data_vault ))
686
- sysfs_remove_group (& pdev -> dev . kobj , & data_attribute_group );
676
+ device_remove_bin_file (& pdev -> dev , & bin_attr_data_vault );
687
677
sysfs_remove_group (& pdev -> dev .kobj , & uuid_attribute_group );
688
678
sysfs_remove_group (& pdev -> dev .kobj , & imok_attribute_group );
689
679
thermal_zone_device_unregister (priv -> thermal );
0 commit comments