]> git.baikalelectronics.ru Git - kernel.git/commit
avr32: pass i2c board info through at32_add_device_twi
authorBen Nizette <bn@niasdigital.com>
Thu, 7 Feb 2008 04:28:57 +0000 (15:28 +1100)
committerHaavard Skinnemoen <haavard.skinnemoen@atmel.com>
Sun, 20 Apr 2008 00:40:06 +0000 (20:40 -0400)
commit252fbcf8f793c6d0927dc9600890297338cb9f64
tree9ce41af956c245292765f7ea5ece3ac7e9230b9b
parentd11b261c73eab577d7d26e6ed2375d512d6d6738
avr32: pass i2c board info through at32_add_device_twi

New-style I2C drivers require that motherboard-mounted I2C devices are
registered with the I2C core, typically at arch_initcall time.  This
can be done nice and neat by passing the struct i2c_board_info[]
through at32_add_device_twi just like we do for the SPI board info.

While we've got the hood up, remove a duplicate declaration of
at32_add_device_twi() in board.h.

[hskinnemoen@atmel.com: add missing i2c_board_info forward-declaration]
Signed-Off-By: Ben Nizette <bn@niasdigital.com>
Signed-off-by: Haavard Skinnemoen <hskinnemoen@atmel.com>
arch/avr32/mach-at32ap/at32ap700x.c
include/asm-avr32/arch-at32ap/board.h