History log of /drivers/i2c/busses/i2c-puv3.c
Revision Date Author Comments
858af58f67d4aba8afb02438e74292b9273cdb10 26-Dec-2011 Guan Xuetao <gxt@mprc.pku.edu.cn> i2c-puv3: using module_platform_driver()

This patch converts the driver to use the module_platform_driver()
macro which makes the code smaller and a bit simpler.

Signed-off-by: Axel Lin <axel.lin@gmail.com>
Signed-off-by: Guan Xuetao <gxt@mprc.pku.edu.cn>
d10e4a660d11212a41ac5d2c116a655e25e2d38a 26-Feb-2011 GuanXuetao <gxt@mprc.pku.edu.cn> unicore32 machine related files: add i2c bus drivers for pkunity-v3 soc

change from original version -- by advice of Jean Delvare
1. remove global variable i2c_reg, replaced by local variables
2. replace ENXIO with ENODEV when no platform resources
3. add adapter->nr assignment before i2c_add_numbered_adapter() call
4. add judgement for i2c_del_adapter() return value
5. release adapter when driver removed
6. add __devexit for puv3_i2c_remove() function
7. modify several names to more appropriated ones

Signed-off-by: Guan Xuetao <gxt@mprc.pku.edu.cn>
Acked-by: Arnd Bergmann <arnd@arndb.de>