File tree Expand file tree Collapse file tree 1 file changed +4
-6
lines changed Expand file tree Collapse file tree 1 file changed +4
-6
lines changed Original file line number Diff line number Diff line change @@ -775,15 +775,13 @@ static const char * __init omap_get_family(void)
775
775
return kasprintf (GFP_KERNEL , "Unknown" );
776
776
}
777
777
778
- static ssize_t omap_get_type (struct device * dev ,
779
- struct device_attribute * attr ,
780
- char * buf )
778
+ static ssize_t
779
+ type_show (struct device * dev , struct device_attribute * attr , char * buf )
781
780
{
782
781
return sprintf (buf , "%s\n" , omap_types [omap_type ()]);
783
782
}
784
783
785
- static struct device_attribute omap_soc_attr =
786
- __ATTR (type , S_IRUGO , omap_get_type , NULL );
784
+ static DEVICE_ATTR_RO (type );
787
785
788
786
void __init omap_soc_device_init (void )
789
787
{
@@ -806,6 +804,6 @@ void __init omap_soc_device_init(void)
806
804
}
807
805
808
806
parent = soc_device_to_device (soc_dev );
809
- device_create_file (parent , & omap_soc_attr );
807
+ device_create_file (parent , & dev_attr_type );
810
808
}
811
809
#endif /* CONFIG_SOC_BUS */
You can’t perform that action at this time.
0 commit comments