Skip to content

Commit 1d08382

Browse files
author
Samuel Ortiz
committed
input: pmic8xxx-keypad: 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 fe0d422 commit 1d08382

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

drivers/input/keyboard/pmic8xxx-keypad.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -520,7 +520,8 @@ static void pmic8xxx_kp_close(struct input_dev *dev)
520520
*/
521521
static int __devinit pmic8xxx_kp_probe(struct platform_device *pdev)
522522
{
523-
const struct pm8xxx_keypad_platform_data *pdata = mfd_get_data(pdev);
523+
const struct pm8xxx_keypad_platform_data *pdata =
524+
dev_get_platdata(&pdev->dev);
524525
const struct matrix_keymap_data *keymap_data;
525526
struct pmic8xxx_kp *kp;
526527
int rc;

0 commit comments

Comments
 (0)