summaryrefslogtreecommitdiff
path: root/drivers/rtc/rtc-max8998.c
diff options
context:
space:
mode:
authorTomasz Figa <t.figa@samsung.com>2013-06-25 18:08:10 +0400
committerSamuel Ortiz <sameo@linux.intel.com>2013-07-01 01:30:04 +0400
commitee999fb3f17faa3af6028bf7130707fe0d4157a4 (patch)
tree9cbadb66c7a3f84c265fd2f7f10801385a7ea50b /drivers/rtc/rtc-max8998.c
parent4280e0b42bd590316a048d66ea356e78c5d0464e (diff)
downloadlinux-ee999fb3f17faa3af6028bf7130707fe0d4157a4.tar.xz
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>
Diffstat (limited to 'drivers/rtc/rtc-max8998.c')
-rw-r--r--drivers/rtc/rtc-max8998.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/rtc/rtc-max8998.c b/drivers/rtc/rtc-max8998.c
index 46f23014759b..042a8734bd28 100644
--- a/drivers/rtc/rtc-max8998.c
+++ b/drivers/rtc/rtc-max8998.c
@@ -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;