From: Michel Lespinasse Date: Tue, 28 Jan 2014 13:06:21 +0000 (-0800) Subject: firmware: fix google/gsmi duplicate efivars_sysfs_init() X-Git-Tag: v3.15-rc1~140^2~15 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b12b73f1ca7763a94e0949a0d86eea40b5f69ea6;p=pandora-kernel.git firmware: fix google/gsmi duplicate efivars_sysfs_init() Starting in commit e14ab23dde12b80db4c94b684a2e485b72b16af3, efivars_sysfs_init() is called both by itself as an init function, and by drivers/firmware/google/gsmi.c gsmi_init(). This results in runtime warnings such as the following: [ 5.651330] WARNING: at fs/sysfs/dir.c:530 sysfs_add_one+0xbd/0xe0() [ 5.657699] sysfs: cannot create duplicate filename '/firmware/gsmi/vars' Fixing this by removing the redundant efivars_sysfs_init() call in gsmi_init(). Tested: booted, checked that /firmware/gsmi/vars was still present and showed the expected contents. Signed-off-by: Michel Lespinasse Acked-by: Matt Fleming Acked-by: Mike Waychison Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed