Patch for CR SDCaa01608: I2C uses wrong adapter name.
In the mxc_i2c driver, set the adapter name to be the same as the
platform_device name. Otherwise, drivers that use i2c may fail
when checking the mxc_i2c adapter name, such as the USB driver.
Applies to linux 2.6.22 kernel on MX platforms.
http://www.bitshrine.org/gpp/linux-2.6.22-mx-CR-SDCaa01608-I2C-uses-wrong-adapter-name.patch
#include <linux/clk.h>
#include <asm/irq.h>
#include <asm/io.h>
+#include <asm/arch/mxc_i2c.h>
#include "mxc_i2c_reg.h"
/*!
/*
* Set the adapter information
*/
- strcpy(mxc_i2c->adap.name, pdev->name);
+ strcpy(mxc_i2c->adap.name, MXC_ADAPTER_NAME);
mxc_i2c->adap.id = id;
mxc_i2c->adap.algo = &mxc_i2c_algorithm;
mxc_i2c->adap.timeout = 1;