Skip to content

Commit bf835ee

Browse files
jithu83suryasaimadhu
authored andcommitted
platform/x86/intel/ifs: Remove reload sysfs entry
Reload sysfs entry will be replaced by current_batch, drop it. Signed-off-by: Jithu Joseph <jithu.joseph@intel.com> Signed-off-by: Borislav Petkov <bp@suse.de> Reviewed-by: Tony Luck <tony.luck@intel.com> Reviewed-by: Sohil Mehta <sohil.mehta@intel.com> Reviewed-by: Hans de Goede <hdegoede@redhat.com> Link: https://lore.kernel.org/r/20221117035935.4136738-14-jithu.joseph@intel.com
1 parent 48c6e7d commit bf835ee

File tree

1 file changed

+0
-29
lines changed
  • drivers/platform/x86/intel/ifs

1 file changed

+0
-29
lines changed

drivers/platform/x86/intel/ifs/sysfs.c

Lines changed: 0 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -87,34 +87,6 @@ static ssize_t run_test_store(struct device *dev,
8787

8888
static DEVICE_ATTR_WO(run_test);
8989

90-
/*
91-
* Reload the IFS image. When user wants to install new IFS image
92-
*/
93-
static ssize_t reload_store(struct device *dev,
94-
struct device_attribute *attr,
95-
const char *buf, size_t count)
96-
{
97-
struct ifs_data *ifsd = ifs_get_data(dev);
98-
bool res;
99-
100-
101-
if (kstrtobool(buf, &res))
102-
return -EINVAL;
103-
if (!res)
104-
return count;
105-
106-
if (down_interruptible(&ifs_sem))
107-
return -EINTR;
108-
109-
ifs_load_firmware(dev);
110-
111-
up(&ifs_sem);
112-
113-
return ifsd->loaded ? count : -ENODEV;
114-
}
115-
116-
static DEVICE_ATTR_WO(reload);
117-
11890
/*
11991
* Display currently loaded IFS image version.
12092
*/
@@ -136,7 +108,6 @@ static struct attribute *plat_ifs_attrs[] = {
136108
&dev_attr_details.attr,
137109
&dev_attr_status.attr,
138110
&dev_attr_run_test.attr,
139-
&dev_attr_reload.attr,
140111
&dev_attr_image_version.attr,
141112
NULL
142113
};

0 commit comments

Comments
 (0)