All the users of this driver explicitly specify the I2C bus numbers
to be used in their platform data. Make the driver respect that.
Signed-off-by: Kalle Pokki <kalle.pokki@eke.fi>
Cc: Bryan Wu <bryan.wu@analog.com>
Signed-off-by: Jean Delvare <khali@linux-fr.org>
 
        p_adap = &iface->adap;
        p_adap->id = I2C_HW_BLACKFIN;
+       p_adap->nr = dev->id;
        strlcpy(p_adap->name, dev->name, sizeof(p_adap->name));
        p_adap->algo = &bfin_twi_algorithm;
        p_adap->algo_data = iface;
        bfin_write_TWI_CONTROL(bfin_read_TWI_CONTROL() | TWI_ENA);
        SSYNC();
 
-       rc = i2c_add_adapter(p_adap);
+       rc = i2c_add_numbered_adapter(p_adap);
        if (rc < 0)
                free_irq(iface->irq, iface);
        else