File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
arch/x86/kernel/cpu/microcode Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -507,16 +507,16 @@ static ssize_t version_show(struct device *dev,
507
507
return sprintf (buf , "0x%x\n" , uci -> cpu_sig .rev );
508
508
}
509
509
510
- static ssize_t pf_show (struct device * dev ,
510
+ static ssize_t processor_flags_show (struct device * dev ,
511
511
struct device_attribute * attr , char * buf )
512
512
{
513
513
struct ucode_cpu_info * uci = ucode_cpu_info + dev -> id ;
514
514
515
515
return sprintf (buf , "0x%x\n" , uci -> cpu_sig .pf );
516
516
}
517
517
518
- static DEVICE_ATTR (version , 0444 , version_show , NULL ) ;
519
- static DEVICE_ATTR (processor_flags , 0444 , pf_show , NULL ) ;
518
+ static DEVICE_ATTR_RO (version );
519
+ static DEVICE_ATTR_RO (processor_flags );
520
520
521
521
static struct attribute * mc_default_attrs [] = {
522
522
& dev_attr_version .attr ,
You can’t perform that action at this time.
0 commit comments