From: mog422 Date: Thu, 12 Jun 2014 06:34:09 +0000 (+0900) Subject: sony-laptop: fix doesn't work lid resume settings on Vaio Pro X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=dc8f0315d20ac6c693203db75450f45db84b1e0e;p=GitHub%2FLineageOS%2Fandroid_kernel_motorola_exynos9610.git sony-laptop: fix doesn't work lid resume settings on Vaio Pro Signed-off-by: mog422 Signed-off-by: Matthew Garrett --- diff --git a/drivers/platform/x86/sony-laptop.c b/drivers/platform/x86/sony-laptop.c index 9c5a07417b2b..26ad9ff12ac5 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;