Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit c5535522 authored by Rabin Vincent's avatar Rabin Vincent Committed by Lee Jones
Browse files

mfd: ab8500-sysctrl: AB8505 doesn't have SYSCLKREQ5..8



So we're removing support for it.

Signed-off-by: default avatarRabin Vincent <rabin.vincent@stericsson.com>
Signed-off-by: default avatarLee Jones <lee.jones@linaro.org>
Tested-by: default avatarMarcus COOPER <marcus.xm.cooper@stericsson.com>
Acked-by: default avatarSamuel Ortiz <sameo@linux.intel.com>
parent 492390c8
Loading
Loading
Loading
Loading
+22 −15
Original line number Diff line number Diff line
@@ -182,9 +182,9 @@ EXPORT_SYMBOL(ab8500_sysctrl_write);

static int ab8500_sysctrl_probe(struct platform_device *pdev)
{
	struct ab8500 *ab8500 = dev_get_drvdata(pdev->dev.parent);
	struct ab8500_platform_data *plat;
	struct ab8500_sysctrl_platform_data *pdata;
	int ret, i, j;

	plat = dev_get_platdata(pdev->dev.parent);

@@ -196,9 +196,15 @@ static int ab8500_sysctrl_probe(struct platform_device *pdev)

	pdata = plat->sysctrl;

	if (pdata) {
		int last, ret, i, j;

	for (i = AB8500_SYSCLKREQ1RFCLKBUF;
	     i <= AB8500_SYSCLKREQ8RFCLKBUF; i++) {
		if (is_ab8505(ab8500))
			last = AB8500_SYSCLKREQ4RFCLKBUF;
		else
			last = AB8500_SYSCLKREQ8RFCLKBUF;

		for (i = AB8500_SYSCLKREQ1RFCLKBUF; i <= last; i++) {
			j = i - AB8500_SYSCLKREQ1RFCLKBUF;
			ret = ab8500_sysctrl_write(i, 0xff,
					pdata->initial_req_buf_config[j]);
@@ -212,6 +218,7 @@ static int ab8500_sysctrl_probe(struct platform_device *pdev)
					"%d\n", j + 1, ret);
			}
		}
	}

	return 0;
}