]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
powerpc/powermac: Remove pmac_low_i2c_{lock,unlock}()
authorBart Van Assche <bvanassche@acm.org>
Mon, 16 Mar 2026 17:47:42 +0000 (10:47 -0700)
committerMadhavan Srinivasan <maddy@linux.ibm.com>
Tue, 12 May 2026 06:20:09 +0000 (11:50 +0530)
Commit a28d3af2a26c ("[PATCH] 2/5 powerpc: Rework PowerMac i2c part 2")
removed the last calls to the pmac_low_i2c_{lock,unlock}() functions.
Hence, remove these two functions.

Reviewed-by: Christophe Leroy (CS GROUP) <chleroy@kernel.org>
Signed-off-by: Bart Van Assche <bvanassche@acm.org>
Signed-off-by: Madhavan Srinivasan <maddy@linux.ibm.com>
Link: https://patch.msgid.link/20260316174747.3871924-1-bvanassche@acm.org
arch/powerpc/include/asm/pmac_low_i2c.h
arch/powerpc/platforms/powermac/low_i2c.c

index 21bd7297c87f65f59ffc737862407dfb638b5a88..fead8fae08ab95dca07830254d0d7b14e6918089 100644 (file)
@@ -79,10 +79,6 @@ extern int pmac_i2c_match_adapter(struct device_node *dev,
                                  struct i2c_adapter *adapter);
 
 
-/* (legacy) Locking functions exposed to i2c-keywest */
-extern int pmac_low_i2c_lock(struct device_node *np);
-extern int pmac_low_i2c_unlock(struct device_node *np);
-
 /* Access functions for platform code */
 extern int pmac_i2c_open(struct pmac_i2c_bus *bus, int polled);
 extern void pmac_i2c_close(struct pmac_i2c_bus *bus);
index 73b7f4e8c047568a217f10a89d205e1191df8652..da72a30ab8657e6dc7e6f3437af612155783d8f9 100644 (file)
@@ -1058,40 +1058,6 @@ int pmac_i2c_match_adapter(struct device_node *dev, struct i2c_adapter *adapter)
 }
 EXPORT_SYMBOL_GPL(pmac_i2c_match_adapter);
 
-int pmac_low_i2c_lock(struct device_node *np)
-{
-       struct pmac_i2c_bus *bus, *found = NULL;
-
-       list_for_each_entry(bus, &pmac_i2c_busses, link) {
-               if (np == bus->controller) {
-                       found = bus;
-                       break;
-               }
-       }
-       if (!found)
-               return -ENODEV;
-       return pmac_i2c_open(bus, 0);
-}
-EXPORT_SYMBOL_GPL(pmac_low_i2c_lock);
-
-int pmac_low_i2c_unlock(struct device_node *np)
-{
-       struct pmac_i2c_bus *bus, *found = NULL;
-
-       list_for_each_entry(bus, &pmac_i2c_busses, link) {
-               if (np == bus->controller) {
-                       found = bus;
-                       break;
-               }
-       }
-       if (!found)
-               return -ENODEV;
-       pmac_i2c_close(bus);
-       return 0;
-}
-EXPORT_SYMBOL_GPL(pmac_low_i2c_unlock);
-
-
 int pmac_i2c_open(struct pmac_i2c_bus *bus, int polled)
 {
        int rc;