diff options
-rw-r--r-- | drivers/extcon/extcon-max8997.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/extcon/extcon-max8997.c b/drivers/extcon/extcon-max8997.c index 6a00464658c5..5e1b88cecb76 100644 --- a/drivers/extcon/extcon-max8997.c +++ b/drivers/extcon/extcon-max8997.c | |||
@@ -715,7 +715,7 @@ static int max8997_muic_probe(struct platform_device *pdev) | |||
715 | goto err_irq; | 715 | goto err_irq; |
716 | } | 716 | } |
717 | 717 | ||
718 | if (pdata->muic_pdata) { | 718 | if (pdata && pdata->muic_pdata) { |
719 | struct max8997_muic_platform_data *muic_pdata | 719 | struct max8997_muic_platform_data *muic_pdata |
720 | = pdata->muic_pdata; | 720 | = pdata->muic_pdata; |
721 | 721 | ||