This patch fixes following build error:
drivers/regulator/max77693.c:673: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘int’
drivers/regulator/max77693.c:743: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘max77693_pmic_remove’
drivers/regulator/max77693.c:768: error: ‘max77693_pmic_probe’ undeclared here (not in a function)
drivers/regulator/max77693.c:769: error: implicit declaration of function ‘__devexit_p’
drivers/regulator/max77693.c:769: error: ‘max77693_pmic_remove’ undeclared here (not in a function)
Signed-off-by: Sylwester Nawrocki <s.nawrocki@samsung.com>
},
};
-static __devinit int max77693_pmic_probe(struct platform_device *pdev)
+static int max77693_pmic_probe(struct platform_device *pdev)
{
struct max77693_dev *iodev = dev_get_drvdata(pdev->dev.parent);
struct max77693_platform_data *pdata = dev_get_platdata(iodev->dev);
return ret;
}
-static int __devexit max77693_pmic_remove(struct platform_device *pdev)
+static int max77693_pmic_remove(struct platform_device *pdev)
{
struct max77693_data *max77693 = platform_get_drvdata(pdev);
struct regulator_dev **rdev = max77693->rdev;
.owner = THIS_MODULE,
},
.probe = max77693_pmic_probe,
- .remove = __devexit_p(max77693_pmic_remove),
+ .remove = max77693_pmic_remove,
.id_table = max77693_pmic_id,
};