@@ -84,7 +84,7 @@ static int ibm_get_attention_status(struct hotplug_slot *slot, u8 *status);
84
84
static void ibm_handle_events (acpi_handle handle , u32 event , void * context );
85
85
static int ibm_get_table_from_acpi (char * * bufp );
86
86
static ssize_t ibm_read_apci_table (struct file * filp , struct kobject * kobj ,
87
- struct bin_attribute * bin_attr ,
87
+ const struct bin_attribute * bin_attr ,
88
88
char * buffer , loff_t pos , size_t size );
89
89
static acpi_status __init ibm_find_acpi_device (acpi_handle handle ,
90
90
u32 lvl , void * context , void * * rv );
@@ -98,7 +98,7 @@ static struct bin_attribute ibm_apci_table_attr __ro_after_init = {
98
98
.name = "apci_table" ,
99
99
.mode = S_IRUGO ,
100
100
},
101
- .read = ibm_read_apci_table ,
101
+ .read_new = ibm_read_apci_table ,
102
102
.write = NULL ,
103
103
};
104
104
static struct acpiphp_attention_info ibm_attention_info =
@@ -353,7 +353,7 @@ static int ibm_get_table_from_acpi(char **bufp)
353
353
* our solution is to only allow reading the table in all at once.
354
354
*/
355
355
static ssize_t ibm_read_apci_table (struct file * filp , struct kobject * kobj ,
356
- struct bin_attribute * bin_attr ,
356
+ const struct bin_attribute * bin_attr ,
357
357
char * buffer , loff_t pos , size_t size )
358
358
{
359
359
int bytes_read = - EINVAL ;
0 commit comments