acpi: bgrt: fix build error due to attribute change
authorGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 22 Aug 2013 15:34:39 +0000 (08:34 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 22 Aug 2013 15:34:39 +0000 (08:34 -0700)
No need to call sysfs_bin_attr_init, as the attribute is not dynamically
created.  Also, we renamed the attribute, so this one isn't even valid
anymore.

Reported-by: Stephen Rothwell <sfr@canb.auug.org.au>
Cc: Len Brown <lenb@kernel.org>
Cc: "Rafael J. Wysocki" <rjw@sisk.pl>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/acpi/bgrt.c

index 7a4128d96117e37f4e1b641b24fb1f16f6cdfa36..a83e3c62c5a9d04e57a0fc644598d6e41d42c290 100644 (file)
@@ -86,7 +86,6 @@ static int __init bgrt_init(void)
        if (!bgrt_image)
                return -ENODEV;
 
-       sysfs_bin_attr_init(&image_attr);
        bin_attr_image.private = bgrt_image;
        bin_attr_image.size = bgrt_image_size;