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 15fc12482ba0..6fbb42048890 100644
--- a/drivers/acpi/ibm_acpi.c
+++ b/drivers/acpi/ibm_acpi.c
@@ -1721,7 +1721,7 @@ static struct ibm_struct ibms[] = {
1721static int dispatch_read(char *page, char **start, off_t off, int count, 1721static int dispatch_read(char *page, char **start, off_t off, int count,
1722 int *eof, void *data) 1722 int *eof, void *data)
1723{ 1723{
1724 struct ibm_struct *ibm = (struct ibm_struct *)data; 1724 struct ibm_struct *ibm = data;
1725 int len; 1725 int len;
1726 1726
1727 if (!ibm || !ibm->read) 1727 if (!ibm || !ibm->read)
@@ -1746,7 +1746,7 @@ static int dispatch_read(char *page, char **start, off_t off, int count,
1746static int dispatch_write(struct file *file, const char __user * userbuf, 1746static int dispatch_write(struct file *file, const char __user * userbuf,
1747 unsigned long count, void *data) 1747 unsigned long count, void *data)
1748{ 1748{
1749 struct ibm_struct *ibm = (struct ibm_struct *)data; 1749 struct ibm_struct *ibm = data;
1750 char *kernbuf; 1750 char *kernbuf;
1751 int ret; 1751 int ret;
1752 1752
@@ -1775,7 +1775,7 @@ static int dispatch_write(struct file *file, const char __user * userbuf,
1775 1775
1776static void dispatch_notify(acpi_handle handle, u32 event, void *data) 1776static void dispatch_notify(acpi_handle handle, u32 event, void *data)
1777{ 1777{
1778 struct ibm_struct *ibm = (struct ibm_struct *)data; 1778 struct ibm_struct *ibm = data;
1779 1779
1780 if (!ibm || !ibm->notify) 1780 if (!ibm || !ibm->notify)
1781 return; 1781 return;