aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/acpi/ibm_acpi.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/acpi/ibm_acpi.c')
-rw-r--r--drivers/acpi/ibm_acpi.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/acpi/ibm_acpi.c b/drivers/acpi/ibm_acpi.c
index ab1800735346..1e7abef404b0 100644
--- a/drivers/acpi/ibm_acpi.c
+++ b/drivers/acpi/ibm_acpi.c
@@ -2417,7 +2417,7 @@ static struct ibm_struct ibms[] = {
2417static int dispatch_read(char *page, char **start, off_t off, int count, 2417static int dispatch_read(char *page, char **start, off_t off, int count,
2418 int *eof, void *data) 2418 int *eof, void *data)
2419{ 2419{
2420 struct ibm_struct *ibm = (struct ibm_struct *)data; 2420 struct ibm_struct *ibm = data;
2421 int len; 2421 int len;
2422 2422
2423 if (!ibm || !ibm->read) 2423 if (!ibm || !ibm->read)
@@ -2442,7 +2442,7 @@ static int dispatch_read(char *page, char **start, off_t off, int count,
2442static int dispatch_write(struct file *file, const char __user * userbuf, 2442static int dispatch_write(struct file *file, const char __user * userbuf,
2443 unsigned long count, void *data) 2443 unsigned long count, void *data)
2444{ 2444{
2445 struct ibm_struct *ibm = (struct ibm_struct *)data; 2445 struct ibm_struct *ibm = data;
2446 char *kernbuf; 2446 char *kernbuf;
2447 int ret; 2447 int ret;
2448 2448
@@ -2471,7 +2471,7 @@ static int dispatch_write(struct file *file, const char __user * userbuf,
2471 2471
2472static void dispatch_notify(acpi_handle handle, u32 event, void *data) 2472static void dispatch_notify(acpi_handle handle, u32 event, void *data)
2473{ 2473{
2474 struct ibm_struct *ibm = (struct ibm_struct *)data; 2474 struct ibm_struct *ibm = data;
2475 2475
2476 if (!ibm || !ibm->notify) 2476 if (!ibm || !ibm->notify)
2477 return; 2477 return;