summaryrefslogtreecommitdiffstats
path: root/drivers/platform
diff options
context:
space:
mode:
authormog422 <admin@mog422.net>2014-06-12 15:34:09 +0900
committerMatthew Garrett <matthew.garrett@nebula.com>2014-08-16 01:23:49 -0700
commitdc8f0315d20ac6c693203db75450f45db84b1e0e (patch)
tree8f82060dd82c50e783c2efd29dafb47158f22110 /drivers/platform
parent7216e10227c90a388db1ee29b7b89820b81aa8eb (diff)
downloadop-kernel-dev-dc8f0315d20ac6c693203db75450f45db84b1e0e.zip
op-kernel-dev-dc8f0315d20ac6c693203db75450f45db84b1e0e.tar.gz
sony-laptop: fix doesn't work lid resume settings on Vaio Pro
Signed-off-by: mog422 <admin@mog422.net> Signed-off-by: Matthew Garrett <matthew.garrett@nebula.com>
Diffstat (limited to 'drivers/platform')
-rw-r--r--drivers/platform/x86/sony-laptop.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/platform/x86/sony-laptop.c b/drivers/platform/x86/sony-laptop.c
index 9c5a074..26ad9ff 100644
--- a/drivers/platform/x86/sony-laptop.c
+++ b/drivers/platform/x86/sony-laptop.c
@@ -2389,7 +2389,7 @@ static int sony_nc_lid_resume_setup(struct platform_device *pd,
lid_ctl->attrs[LID_RESUME_S3].store = sony_nc_lid_resume_store;
}
for (i = 0; i < LID_RESUME_MAX &&
- lid_ctl->attrs[LID_RESUME_S3].attr.name; i++) {
+ lid_ctl->attrs[i].attr.name; i++) {
result = device_create_file(&pd->dev, &lid_ctl->attrs[i]);
if (result)
goto liderror;
OpenPOWER on IntegriCloud