diff options
Diffstat (limited to 'drivers/i2c/busses/i2c-ibm_iic.c')
| -rw-r--r-- | drivers/i2c/busses/i2c-ibm_iic.c | 10 | 
1 files changed, 3 insertions, 7 deletions
diff --git a/drivers/i2c/busses/i2c-ibm_iic.c b/drivers/i2c/busses/i2c-ibm_iic.c index eeb80e34f9ad..1ad9d3b26dd3 100644 --- a/drivers/i2c/busses/i2c-ibm_iic.c +++ b/drivers/i2c/busses/i2c-ibm_iic.c @@ -694,10 +694,8 @@ static int iic_probe(struct platform_device *ofdev)  	int ret;  	dev = kzalloc(sizeof(*dev), GFP_KERNEL); -	if (!dev) { -		dev_err(&ofdev->dev, "failed to allocate device data\n"); +	if (!dev)  		return -ENOMEM; -	}  	platform_set_drvdata(ofdev, dev); @@ -769,7 +767,7 @@ error_cleanup:  /*   * Cleanup initialized IIC interface   */ -static int iic_remove(struct platform_device *ofdev) +static void iic_remove(struct platform_device *ofdev)  {  	struct ibm_iic_private *dev = platform_get_drvdata(ofdev); @@ -782,8 +780,6 @@ static int iic_remove(struct platform_device *ofdev)  	iounmap(dev->vaddr);  	kfree(dev); - -	return 0;  }  static const struct of_device_id ibm_iic_match[] = { @@ -798,7 +794,7 @@ static struct platform_driver ibm_iic_driver = {  		.of_match_table = ibm_iic_match,  	},  	.probe	= iic_probe, -	.remove	= iic_remove, +	.remove_new = iic_remove,  };  module_platform_driver(ibm_iic_driver);  |