The patch titled i2c-at91 supports new-style i2c drivers has been added to the -mm tree. Its filename is i2c-at91-supports-new-style-i2c-drivers.patch *** Remember to use Documentation/SubmitChecklist when testing your code *** See http://www.zip.com.au/~akpm/linux/patches/stuff/added-to-mm.txt to find out what to do about this ------------------------------------------------------ Subject: i2c-at91 supports new-style i2c drivers From: David Brownell <david-b@xxxxxxxxxxx> Make i2c-at91 register as i2c adapter zero (none of these chips seem to have more than one TWI controllers) to let it kick in any board-specific device declarations; also make it hotplug/coldplug. Signed-off-by: David Brownell <dbrownell@xxxxxxxxxxxxxxxxxxxxx> Acked-by: Jean Delvare <khali@xxxxxxxxxxxx> Cc: Andrew Victor <andrew@xxxxxxxxxxxxx> Signed-off-by: Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx> --- drivers/i2c/busses/i2c-at91.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff -puN drivers/i2c/busses/i2c-at91.c~i2c-at91-supports-new-style-i2c-drivers drivers/i2c/busses/i2c-at91.c --- a/drivers/i2c/busses/i2c-at91.c~i2c-at91-supports-new-style-i2c-drivers +++ a/drivers/i2c/busses/i2c-at91.c @@ -226,13 +226,14 @@ static int __devinit at91_i2c_probe(stru adapter->algo = &at91_algorithm; adapter->class = I2C_CLASS_HWMON; adapter->dev.parent = &pdev->dev; + /* adapter->id == 0 ... only one TWI controller for now */ platform_set_drvdata(pdev, adapter); clk_enable(twi_clk); /* enable peripheral clock */ at91_twi_hwinit(); /* initialize TWI controller */ - rc = i2c_add_adapter(adapter); + rc = i2c_add_numbered_adapter(adapter); if (rc) { dev_err(&pdev->dev, "Adapter %s registration failed\n", adapter->name); @@ -295,6 +296,9 @@ static int at91_i2c_resume(struct platfo #define at91_i2c_resume NULL #endif +/* work with "modprobe at91_i2c" from hotplugging or coldplugging */ +MODULE_ALIAS("at91_i2c"); + static struct platform_driver at91_i2c_driver = { .probe = at91_i2c_probe, .remove = __devexit_p(at91_i2c_remove), _ Patches currently in -mm which might be from david-b@xxxxxxxxxxx are origin.patch i2c-at91-supports-new-style-i2c-drivers.patch acpi-driver-model-flags-and-platform_enable_wake.patch update-documentation-driver-model-platformtxt.patch fix-jdelvare-i2c-i2c-at91-support-new-style-binding.patch leds-gpio-handles-timer-unsafe-gpios.patch use-menuconfig-objects-ii-rtc.patch mpc52xx-psc-spi-master-driver-update.patch mpc52xx-psc-spi-master-driver-update-tidy.patch rtc-rs5c313c-error-and-warning-are-fixed.patch rtc-rs5c313c-rtc_time-value-are-fixed.patch rtc-rs5c313c-add-error-handling-to-avoid-hardware-hangup.patch - To unsubscribe from this list: send the line "unsubscribe mm-commits" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html