mfd: max8998: Add support for Device Tree
This patch adds Device Tree support to max8998 driver. Signed-off-by: Tomasz Figa <t.figa@samsung.com> Acked-by: Mark Brown <broonie@linaro.org> Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>
This commit is contained in:

committed by
Samuel Ortiz

parent
4280e0b42b
commit
ee999fb3f1
@@ -253,7 +253,7 @@ static const struct rtc_class_ops max8998_rtc_ops = {
|
||||
static int max8998_rtc_probe(struct platform_device *pdev)
|
||||
{
|
||||
struct max8998_dev *max8998 = dev_get_drvdata(pdev->dev.parent);
|
||||
struct max8998_platform_data *pdata = dev_get_platdata(max8998->dev);
|
||||
struct max8998_platform_data *pdata = max8998->pdata;
|
||||
struct max8998_rtc_info *info;
|
||||
int ret;
|
||||
|
||||
|
Reference in New Issue
Block a user