From d15b85755b25e1b0201e24bc0c29f31eb4e856c4 Mon Sep 17 00:00:00 2001 From: Linus Walleij Date: Sat, 15 Jun 2013 22:38:14 +0200 Subject: [PATCH] i2c: nomadik: allocate adapter number dynamically The Nomadik I2C was using a local atomic counter to number the I2C adapters. This does not work on configurations where you also add, say a GPIO bit-banged adapter to the system. They will start to conflict about being adapter 0. There is no reason to use the numbered adapter function, and the semantic effect on systems with only Nomadik I2C blocks will be none - instead of increasing the number atomically in the driver itself, it is done in the I2C core. Signed-off-by: Linus Walleij Signed-off-by: Wolfram Sang --- Reading git-format-patch failed