Merge branch 'next-devicetree' of git://git.secretlab.ca/git/linux-2.6
* 'next-devicetree' of git://git.secretlab.ca/git/linux-2.6: mmc_spi: Fix unterminated of_match_table of/sparc: fix build regression from of_device changes of/device: Replace struct of_device with struct platform_device
This commit is contained in:
@ -105,7 +105,7 @@ struct i2c_reg {
|
||||
|
||||
struct cpm_i2c {
|
||||
char *base;
|
||||
struct of_device *ofdev;
|
||||
struct platform_device *ofdev;
|
||||
struct i2c_adapter adap;
|
||||
uint dp_addr;
|
||||
int version; /* CPM1=1, CPM2=2 */
|
||||
@ -428,7 +428,7 @@ static const struct i2c_adapter cpm_ops = {
|
||||
|
||||
static int __devinit cpm_i2c_setup(struct cpm_i2c *cpm)
|
||||
{
|
||||
struct of_device *ofdev = cpm->ofdev;
|
||||
struct platform_device *ofdev = cpm->ofdev;
|
||||
const u32 *data;
|
||||
int len, ret, i;
|
||||
void __iomem *i2c_base;
|
||||
@ -634,7 +634,7 @@ static void cpm_i2c_shutdown(struct cpm_i2c *cpm)
|
||||
cpm_muram_free(cpm->i2c_addr);
|
||||
}
|
||||
|
||||
static int __devinit cpm_i2c_probe(struct of_device *ofdev,
|
||||
static int __devinit cpm_i2c_probe(struct platform_device *ofdev,
|
||||
const struct of_device_id *match)
|
||||
{
|
||||
int result, len;
|
||||
@ -687,7 +687,7 @@ out_free:
|
||||
return result;
|
||||
}
|
||||
|
||||
static int __devexit cpm_i2c_remove(struct of_device *ofdev)
|
||||
static int __devexit cpm_i2c_remove(struct platform_device *ofdev)
|
||||
{
|
||||
struct cpm_i2c *cpm = dev_get_drvdata(&ofdev->dev);
|
||||
|
||||
|
@ -661,7 +661,7 @@ static inline u8 iic_clckdiv(unsigned int opb)
|
||||
return (u8)((opb + 9) / 10 - 1);
|
||||
}
|
||||
|
||||
static int __devinit iic_request_irq(struct of_device *ofdev,
|
||||
static int __devinit iic_request_irq(struct platform_device *ofdev,
|
||||
struct ibm_iic_private *dev)
|
||||
{
|
||||
struct device_node *np = ofdev->dev.of_node;
|
||||
@ -692,7 +692,7 @@ static int __devinit iic_request_irq(struct of_device *ofdev,
|
||||
/*
|
||||
* Register single IIC interface
|
||||
*/
|
||||
static int __devinit iic_probe(struct of_device *ofdev,
|
||||
static int __devinit iic_probe(struct platform_device *ofdev,
|
||||
const struct of_device_id *match)
|
||||
{
|
||||
struct device_node *np = ofdev->dev.of_node;
|
||||
@ -780,7 +780,7 @@ error_cleanup:
|
||||
/*
|
||||
* Cleanup initialized IIC interface
|
||||
*/
|
||||
static int __devexit iic_remove(struct of_device *ofdev)
|
||||
static int __devexit iic_remove(struct platform_device *ofdev)
|
||||
{
|
||||
struct ibm_iic_private *dev = dev_get_drvdata(&ofdev->dev);
|
||||
|
||||
|
@ -560,7 +560,7 @@ static struct i2c_adapter mpc_ops = {
|
||||
.timeout = HZ,
|
||||
};
|
||||
|
||||
static int __devinit fsl_i2c_probe(struct of_device *op,
|
||||
static int __devinit fsl_i2c_probe(struct platform_device *op,
|
||||
const struct of_device_id *match)
|
||||
{
|
||||
struct mpc_i2c *i2c;
|
||||
@ -646,7 +646,7 @@ static int __devinit fsl_i2c_probe(struct of_device *op,
|
||||
return result;
|
||||
};
|
||||
|
||||
static int __devexit fsl_i2c_remove(struct of_device *op)
|
||||
static int __devexit fsl_i2c_remove(struct platform_device *op)
|
||||
{
|
||||
struct mpc_i2c *i2c = dev_get_drvdata(&op->dev);
|
||||
|
||||
|
Reference in New Issue
Block a user