Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

mfd: Set MAX8997 irq pointer

Required platform information is not handed to max8997-irq.c properly.
This patch enables to hand over such information to max8997-irq.c so
that max8997-irq functions properly.

Signed-off-by: MyungJoo Ham <myungjoo.ham@samsung.com>
Signed-off-by: Kyungmin Park <kyungmin.park@samsung.com>
Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>

authored by

MyungJoo Ham and committed by
Samuel Ortiz
7eb3154e fa948761

+5
+5
drivers/mfd/max8997.c
··· 135 135 max8997->dev = &i2c->dev; 136 136 max8997->i2c = i2c; 137 137 max8997->type = id->driver_data; 138 + max8997->irq = i2c->irq; 138 139 139 140 if (!pdata) 140 141 goto err; 141 142 143 + max8997->irq_base = pdata->irq_base; 144 + max8997->ono = pdata->ono; 142 145 max8997->wakeup = pdata->wakeup; 143 146 144 147 mutex_init(&max8997->iolock); ··· 154 151 i2c_set_clientdata(max8997->muic, max8997); 155 152 156 153 pm_runtime_set_active(max8997->dev); 154 + 155 + max8997_irq_init(max8997); 157 156 158 157 mfd_add_devices(max8997->dev, -1, max8997_devs, 159 158 ARRAY_SIZE(max8997_devs),