mfd: pm8821-core: fix a potential NULL dereference

Null pointer of pmic may be dereferenced for pmic->irq_chip.

Change-Id: I2751038a7e8a54726078f2f09e4e91d162b74386
Signed-off-by: Willie Ruan <wruan@codeaurora.org>
1 file changed