Skip to content

Commit 63ef112

Browse files
author
Samuel Ortiz
committed
input: pmic8xxx-pwrkey: Do not use mfd_get_data()
mfd_get_data() has been removed from the MFD API. Cc: Anirudh Ghayal <[email protected]> Signed-off-by: Samuel Ortiz <[email protected]>
1 parent 1d08382 commit 63ef112

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

drivers/input/misc/pmic8xxx-pwrkey.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,8 @@ static int __devinit pmic8xxx_pwrkey_probe(struct platform_device *pdev)
9090
unsigned int delay;
9191
u8 pon_cntl;
9292
struct pmic8xxx_pwrkey *pwrkey;
93-
const struct pm8xxx_pwrkey_platform_data *pdata = mfd_get_data(pdev);
93+
const struct pm8xxx_pwrkey_platform_data *pdata =
94+
dev_get_platdata(&pdev->dev);
9495

9596
if (!pdata) {
9697
dev_err(&pdev->dev, "power key platform data not supplied\n");

0 commit comments

Comments
 (0)