scsi: ufs: Fix compilation failure with CONFIG_LOCK_STAT

from include/linux/kobject.h:21:0,
from include/linux/device.h:17,
from include/linux/devfreq.h:16,
from drivers/scsi/ufs/ufshcd.c:42:
drivers/scsi/ufs/ufshcd.c:
	In function 'ufshcd_init_clk_gating':
drivers/scsi/ufs/ufshcd.c:1548:19:
	error: 'clk_gating' undeclared (first use in this function)
sysfs_attr_init(&clk_gating->enable_attr.attr);

Change-Id: Ie61be8bc4472cf8960dc0afc3e0683c761ea177e
Signed-off-by: Patrick Daly <pdaly@codeaurora.org>
This commit is contained in:
Patrick Daly 2015-09-04 15:55:26 -07:00 committed by David Keitel
parent f1250d358d
commit a2f12c7987

View file

@ -1544,7 +1544,7 @@ scaling_not_supported:
add_clkgate_enable:
gating->enable_attr.show = ufshcd_clkgate_enable_show;
gating->enable_attr.store = ufshcd_clkgate_enable_store;
sysfs_attr_init(&clk_gating->enable_attr.attr);
sysfs_attr_init(&gating->enable_attr.attr);
gating->enable_attr.attr.name = "clkgate_enable";
gating->enable_attr.attr.mode = S_IRUGO | S_IWUSR;
if (device_create_file(hba->dev, &gating->enable_attr))