Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 14f21582 authored by Patrick Daly's avatar Patrick Daly
Browse files

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: default avatarPatrick Daly <pdaly@codeaurora.org>
parent e6123cce
Loading
Loading
Loading
Loading
+1 −1
Original line number Original line Diff line number Diff line
@@ -1545,7 +1545,7 @@ scaling_not_supported:
add_clkgate_enable:
add_clkgate_enable:
	gating->enable_attr.show = ufshcd_clkgate_enable_show;
	gating->enable_attr.show = ufshcd_clkgate_enable_show;
	gating->enable_attr.store = ufshcd_clkgate_enable_store;
	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.name = "clkgate_enable";
	gating->enable_attr.attr.mode = S_IRUGO | S_IWUSR;
	gating->enable_attr.attr.mode = S_IRUGO | S_IWUSR;
	if (device_create_file(hba->dev, &gating->enable_attr))
	if (device_create_file(hba->dev, &gating->enable_attr))