diff options
author | Jithu Joseph <jithu.joseph@intel.com> | 2022-11-17 06:59:32 +0300 |
---|---|---|
committer | Borislav Petkov <bp@suse.de> | 2022-11-19 13:23:53 +0300 |
commit | bf835ee852be38e9fab1fdb330eccdd9728aec34 (patch) | |
tree | d329810060c808bbddae47a6646734cca42684f9 /drivers/platform/x86 | |
parent | 48c6e7dc19051c5ef725490cf8673d768cda7748 (diff) | |
download | linux-bf835ee852be38e9fab1fdb330eccdd9728aec34.tar.xz |
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
Diffstat (limited to 'drivers/platform/x86')
-rw-r--r-- | drivers/platform/x86/intel/ifs/sysfs.c | 29 |
1 files changed, 0 insertions, 29 deletions
diff --git a/drivers/platform/x86/intel/ifs/sysfs.c b/drivers/platform/x86/intel/ifs/sysfs.c index 65dd6fea5342..e077910c5d28 100644 --- a/drivers/platform/x86/intel/ifs/sysfs.c +++ b/drivers/platform/x86/intel/ifs/sysfs.c @@ -88,34 +88,6 @@ static ssize_t run_test_store(struct device *dev, static DEVICE_ATTR_WO(run_test); /* - * Reload the IFS image. When user wants to install new IFS image - */ -static ssize_t reload_store(struct device *dev, - struct device_attribute *attr, - const char *buf, size_t count) -{ - struct ifs_data *ifsd = ifs_get_data(dev); - bool res; - - - if (kstrtobool(buf, &res)) - return -EINVAL; - if (!res) - return count; - - if (down_interruptible(&ifs_sem)) - return -EINTR; - - ifs_load_firmware(dev); - - up(&ifs_sem); - - return ifsd->loaded ? count : -ENODEV; -} - -static DEVICE_ATTR_WO(reload); - -/* * Display currently loaded IFS image version. */ static ssize_t image_version_show(struct device *dev, @@ -136,7 +108,6 @@ static struct attribute *plat_ifs_attrs[] = { &dev_attr_details.attr, &dev_attr_status.attr, &dev_attr_run_test.attr, - &dev_attr_reload.attr, &dev_attr_image_version.attr, NULL }; |