88pm8607.c (f9cd49033b349b8be3bb1f01b39eed837853d880) 88pm8607.c (023670295ab6b65f5a84b8f214377c04c683809d)
1/*
2 * Regulators driver for Marvell 88PM8607
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

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

315{
316 struct pm860x_chip *chip = dev_get_drvdata(pdev->dev.parent);
317 struct pm8607_regulator_info *info = NULL;
318 struct regulator_init_data *pdata = pdev->dev.platform_data;
319 struct regulator_config config = { };
320 struct resource *res;
321 int i;
322
1/*
2 * Regulators driver for Marvell 88PM8607
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

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

315{
316 struct pm860x_chip *chip = dev_get_drvdata(pdev->dev.parent);
317 struct pm8607_regulator_info *info = NULL;
318 struct regulator_init_data *pdata = pdev->dev.platform_data;
319 struct regulator_config config = { };
320 struct resource *res;
321 int i;
322
323 res = platform_get_resource(pdev, IORESOURCE_IO, 0);
323 res = platform_get_resource(pdev, IORESOURCE_REG, 0);
324 if (res == NULL) {
325 dev_err(&pdev->dev, "No I/O resource!\n");
326 return -EINVAL;
327 }
328 for (i = 0; i < ARRAY_SIZE(pm8607_regulator_info); i++) {
329 info = &pm8607_regulator_info[i];
330 if (info->desc.id == res->start)
331 break;

--- 68 unchanged lines hidden ---
324 if (res == NULL) {
325 dev_err(&pdev->dev, "No I/O resource!\n");
326 return -EINVAL;
327 }
328 for (i = 0; i < ARRAY_SIZE(pm8607_regulator_info); i++) {
329 info = &pm8607_regulator_info[i];
330 if (info->desc.id == res->start)
331 break;

--- 68 unchanged lines hidden ---