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

Commit 8afeac2d authored by Joel Nider's avatar Joel Nider Committed by Stephen Boyd
Browse files

tspp: use device name when getting clock



The new method for requesting clocks requires a driver to pass its
device name for comparison to the list of available clocks.

Change-Id: Ica5b09447de177beead90f8b7c721b84820fbdf7
Signed-off-by: default avatarJoel Nider <jnider@codeaurora.org>
parent 2c349eeb
Loading
Loading
Loading
Loading
+3 −3
Original line number Diff line number Diff line
/* Copyright (c) 2011, The Linux Foundation. All rights reserved.
/* Copyright (c) 2011-2012, The Linux Foundation. All rights reserved.
 *
 * This program is free software; you can redistribute it and/or modify
 * it under the terms of the GNU General Public License version 2 and
@@ -1687,7 +1687,7 @@ static int msm_tspp_probe(struct platform_device *pdev)

	/* map clocks */
	if (data->tsif_pclk) {
		device->tsif_pclk = clk_get(NULL, data->tsif_pclk);
		device->tsif_pclk = clk_get(&pdev->dev, data->tsif_pclk);
		if (IS_ERR(device->tsif_pclk)) {
			pr_err("tspp: failed to get %s",
				data->tsif_pclk);
@@ -1697,7 +1697,7 @@ static int msm_tspp_probe(struct platform_device *pdev)
		}
	}
	if (data->tsif_ref_clk) {
		device->tsif_ref_clk = clk_get(NULL, data->tsif_ref_clk);
		device->tsif_ref_clk = clk_get(&pdev->dev, data->tsif_ref_clk);
		if (IS_ERR(device->tsif_ref_clk)) {
			pr_err("tspp: failed to get %s",
				data->tsif_ref_clk);