mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-11-25 13:14:07 +08:00
input: pmic8xxx-pwrkey: Do not use mfd_get_data()
mfd_get_data() has been removed from the MFD API. Cc: Anirudh Ghayal <aghayal@codeaurora.org> Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>
This commit is contained in:
parent
1d08382a0e
commit
63ef1124f1
@ -90,7 +90,8 @@ static int __devinit pmic8xxx_pwrkey_probe(struct platform_device *pdev)
|
||||
unsigned int delay;
|
||||
u8 pon_cntl;
|
||||
struct pmic8xxx_pwrkey *pwrkey;
|
||||
const struct pm8xxx_pwrkey_platform_data *pdata = mfd_get_data(pdev);
|
||||
const struct pm8xxx_pwrkey_platform_data *pdata =
|
||||
dev_get_platdata(&pdev->dev);
|
||||
|
||||
if (!pdata) {
|
||||
dev_err(&pdev->dev, "power key platform data not supplied\n");
|
||||
|
Loading…
Reference in New Issue
Block a user