]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
x86/platform/iosf_mbi: Remove unused iosf_mbi_unregister_pmic_bus_access_notifier()
authorDr. David Alan Gilbert <linux@treblig.org>
Wed, 25 Dec 2024 17:50:10 +0000 (17:50 +0000)
committerIngo Molnar <mingo@kernel.org>
Tue, 1 Apr 2025 18:31:39 +0000 (20:31 +0200)
The last use of iosf_mbi_unregister_pmic_bus_access_notifier() was
removed in 2017 by:

  a5266db4d314 ("drm/i915: Acquire PUNIT->PMIC bus for intel_uncore_forcewake_reset()")

Remove it.

(Note that the '_unlocked' version is still used.)

Signed-off-by: Dr. David Alan Gilbert <linux@treblig.org>
Signed-off-by: Ingo Molnar <mingo@kernel.org>
Cc: Jani Nikula <jani.nikula@linux.intel.com>
Cc: Joonas Lahtinen <joonas.lahtinen@linux.intel.com>
Cc: Rodrigo Vivi <rodrigo.vivi@intel.com>
Cc: Tvrtko Ursulin <tursulin@ursulin.net>
Cc: David Airlie <airlied@gmail.com>
Cc: Simona Vetter <simona@ffwll.ch>
Cc: intel-gfx@lists.freedesktop.org
Cc: dri-devel@lists.freedesktop.org
Link: https://lore.kernel.org/r/20241225175010.91783-1-linux@treblig.org
arch/x86/include/asm/iosf_mbi.h
arch/x86/platform/intel/iosf_mbi.c
drivers/gpu/drm/i915/i915_iosf_mbi.h

index af7541c11821ffbaf7a2c3ed2687a331f4eaa70b..8ace6559d39985c6dcda1cd4abd678a2f8b4a3e1 100644 (file)
@@ -167,13 +167,6 @@ void iosf_mbi_unblock_punit_i2c_access(void);
  */
 int iosf_mbi_register_pmic_bus_access_notifier(struct notifier_block *nb);
 
-/**
- * iosf_mbi_register_pmic_bus_access_notifier - Unregister PMIC bus notifier
- *
- * @nb: notifier_block to unregister
- */
-int iosf_mbi_unregister_pmic_bus_access_notifier(struct notifier_block *nb);
-
 /**
  * iosf_mbi_unregister_pmic_bus_access_notifier_unlocked - Unregister PMIC bus
  *                                                         notifier, unlocked
index c81cea208c2c4392d79c4d2d42153ee7fec32811..40ae94db20d8e31d6812a119095e079e9a627d8c 100644 (file)
@@ -422,19 +422,6 @@ int iosf_mbi_unregister_pmic_bus_access_notifier_unlocked(
 }
 EXPORT_SYMBOL(iosf_mbi_unregister_pmic_bus_access_notifier_unlocked);
 
-int iosf_mbi_unregister_pmic_bus_access_notifier(struct notifier_block *nb)
-{
-       int ret;
-
-       /* Wait for the bus to go inactive before unregistering */
-       iosf_mbi_punit_acquire();
-       ret = iosf_mbi_unregister_pmic_bus_access_notifier_unlocked(nb);
-       iosf_mbi_punit_release();
-
-       return ret;
-}
-EXPORT_SYMBOL(iosf_mbi_unregister_pmic_bus_access_notifier);
-
 void iosf_mbi_assert_punit_acquired(void)
 {
        WARN_ON(iosf_mbi_pmic_punit_access_count == 0);
index 8f81b7603d3747ccd32100ecdab29f9d0980d2d1..317075d0da4eae3787e2a4822aee53bdd351eab1 100644 (file)
@@ -31,12 +31,6 @@ iosf_mbi_unregister_pmic_bus_access_notifier_unlocked(struct notifier_block *nb)
 {
        return 0;
 }
-
-static inline
-int iosf_mbi_unregister_pmic_bus_access_notifier(struct notifier_block *nb)
-{
-       return 0;
-}
 #endif
 
 #endif /* __I915_IOSF_MBI_H__ */