88pm860x_bl.c (593d0a3e9f813db910dc50574532914db21d09ff) 88pm860x_bl.c (023670295ab6b65f5a84b8f214377c04c683809d)
1/*
2 * Backlight driver for Marvell Semiconductor 88PM8606
3 *
4 * Copyright (C) 2009 Marvell International Ltd.
5 * Haojian Zhuang <haojian.zhuang@marvell.com>
6 *
7 * This program is free software; you can redistribute it and/or modify
8 * it under the terms of the GNU General Public License version 2 as

--- 187 unchanged lines hidden (view full) ---

196 struct pm860x_backlight_pdata *pdata = NULL;
197 struct pm860x_backlight_data *data;
198 struct backlight_device *bl;
199 struct resource *res;
200 struct backlight_properties props;
201 char name[MFD_NAME_SIZE];
202 int ret;
203
1/*
2 * Backlight driver for Marvell Semiconductor 88PM8606
3 *
4 * Copyright (C) 2009 Marvell International Ltd.
5 * Haojian Zhuang <haojian.zhuang@marvell.com>
6 *
7 * This program is free software; you can redistribute it and/or modify
8 * it under the terms of the GNU General Public License version 2 as

--- 187 unchanged lines hidden (view full) ---

196 struct pm860x_backlight_pdata *pdata = NULL;
197 struct pm860x_backlight_data *data;
198 struct backlight_device *bl;
199 struct resource *res;
200 struct backlight_properties props;
201 char name[MFD_NAME_SIZE];
202 int ret;
203
204 res = platform_get_resource(pdev, IORESOURCE_IO, 0);
204 res = platform_get_resource(pdev, IORESOURCE_REG, 0);
205 if (res == NULL) {
206 dev_err(&pdev->dev, "No I/O resource!\n");
207 return -EINVAL;
208 }
209
210 pdata = pdev->dev.platform_data;
211 if (pdata == NULL) {
212 dev_err(&pdev->dev, "platform data isn't assigned to "

--- 70 unchanged lines hidden ---
205 if (res == NULL) {
206 dev_err(&pdev->dev, "No I/O resource!\n");
207 return -EINVAL;
208 }
209
210 pdata = pdev->dev.platform_data;
211 if (pdata == NULL) {
212 dev_err(&pdev->dev, "platform data isn't assigned to "

--- 70 unchanged lines hidden ---