leds-88pm860x.c (188ce5abebf56ec732f652abe608b94c317e4963) | leds-88pm860x.c (023670295ab6b65f5a84b8f214377c04c683809d) |
---|---|
1/* 2 * LED driver for Marvell 88PM860x 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 --- 183 unchanged lines hidden (view full) --- 192static int pm860x_led_probe(struct platform_device *pdev) 193{ 194 struct pm860x_chip *chip = dev_get_drvdata(pdev->dev.parent); 195 struct pm860x_led_pdata *pdata; 196 struct pm860x_led *data; 197 struct resource *res; 198 int ret; 199 | 1/* 2 * LED driver for Marvell 88PM860x 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 --- 183 unchanged lines hidden (view full) --- 192static int pm860x_led_probe(struct platform_device *pdev) 193{ 194 struct pm860x_chip *chip = dev_get_drvdata(pdev->dev.parent); 195 struct pm860x_led_pdata *pdata; 196 struct pm860x_led *data; 197 struct resource *res; 198 int ret; 199 |
200 res = platform_get_resource(pdev, IORESOURCE_IO, 0); | 200 res = platform_get_resource(pdev, IORESOURCE_REG, 0); |
201 if (res == NULL) { 202 dev_err(&pdev->dev, "No I/O resource!\n"); 203 return -EINVAL; 204 } 205 206 pdata = pdev->dev.platform_data; 207 if (pdata == NULL) { 208 dev_err(&pdev->dev, "No platform data!\n"); --- 56 unchanged lines hidden --- | 201 if (res == NULL) { 202 dev_err(&pdev->dev, "No I/O resource!\n"); 203 return -EINVAL; 204 } 205 206 pdata = pdev->dev.platform_data; 207 if (pdata == NULL) { 208 dev_err(&pdev->dev, "No platform data!\n"); --- 56 unchanged lines hidden --- |