Skip to content

Commit b149d5d

Browse files
chleroympe
authored andcommitted
powerpc/powermac: Add additional missing lockdep_register_key()
Commit df1f679 ("powerpc/powermac: Add missing lockdep_register_key()") fixed a problem that was causing a WARNING. There are two other places in the same file with the same problem originating from commit 9e607f7 ("i2c_powermac: shut up lockdep warning"). Add missing lockdep_register_key() Fixes: 9e607f7 ("i2c_powermac: shut up lockdep warning") Reported-by: Erhard Furtner <erhard_f@mailbox.org> Signed-off-by: Christophe Leroy <christophe.leroy@csgroup.eu> Depends-on: df1f679 ("powerpc/powermac: Add missing lockdep_register_key()") Signed-off-by: Michael Ellerman <mpe@ellerman.id.au> Link: https://bugzilla.kernel.org/show_bug.cgi?id=200055 Link: https://lore.kernel.org/r/2c7e421874e21b2fb87813d768cf662f630c2ad4.1638984999.git.christophe.leroy@csgroup.eu
1 parent 06e629c commit b149d5d

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

‎arch/powerpc/platforms/powermac/low_i2c.c‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -811,6 +811,7 @@ static void __init pmu_i2c_probe(void)
811811
bus->hostdata = bus + 1;
812812
bus->xfer = pmu_i2c_xfer;
813813
mutex_init(&bus->mutex);
814+
lockdep_register_key(&bus->lock_key);
814815
lockdep_set_class(&bus->mutex, &bus->lock_key);
815816
bus->flags = pmac_i2c_multibus;
816817
list_add(&bus->link, &pmac_i2c_busses);
@@ -934,6 +935,7 @@ static void __init smu_i2c_probe(void)
934935
bus->hostdata = bus + 1;
935936
bus->xfer = smu_i2c_xfer;
936937
mutex_init(&bus->mutex);
938+
lockdep_register_key(&bus->lock_key);
937939
lockdep_set_class(&bus->mutex, &bus->lock_key);
938940
bus->flags = 0;
939941
list_add(&bus->link, &pmac_i2c_busses);

0 commit comments

Comments
 (0)