| From 0c162606d98f39f2d8736e91bc79b6fffea7b2c3 Mon Sep 17 00:00:00 2001 |
| From: Jingoo Han <jg1.han@samsung.com> |
| Date: Tue, 30 Jul 2013 16:59:33 +0900 |
| Subject: i2c: use dev_get_platdata() |
| |
| Use the wrapper function for retrieving the platform data instead of |
| accessing dev->platform_data directly. |
| |
| Signed-off-by: Jingoo Han <jg1.han@samsung.com> |
| Signed-off-by: Wolfram Sang <wsa@the-dreams.de> |
| (cherry picked from commit 6d4028c644edc0a2e4a8c948ebf81e8f2f09726e) |
| Signed-off-by: Daniel Sangorrin <daniel.sangorrin@toshiba.co.jp> |
| Signed-off-by: Yoshitake Kobayashi <yoshitake.kobayashi@toshiba.co.jp> |
| --- |
| drivers/i2c/busses/i2c-xiic.c | 2 +- |
| 1 file changed, 1 insertion(+), 1 deletion(-) |
| |
| diff --git a/drivers/i2c/busses/i2c-xiic.c b/drivers/i2c/busses/i2c-xiic.c |
| index 3d0f0520c1b4..433f377b3869 100644 |
| --- a/drivers/i2c/busses/i2c-xiic.c |
| +++ b/drivers/i2c/busses/i2c-xiic.c |
| @@ -703,7 +703,7 @@ static int xiic_i2c_probe(struct platform_device *pdev) |
| if (irq < 0) |
| goto resource_missing; |
| |
| - pdata = (struct xiic_i2c_platform_data *) pdev->dev.platform_data; |
| + pdata = (struct xiic_i2c_platform_data *)dev_get_platdata(&pdev->dev); |
| |
| i2c = kzalloc(sizeof(*i2c), GFP_KERNEL); |
| if (!i2c) |
| -- |
| 1.8.5.rc3 |
| |