diff options
author | Prashant Gaikwad <pgaikwad@nvidia.com> | 2013-01-11 03:01:20 -0500 |
---|---|---|
committer | Stephen Warren <swarren@nvidia.com> | 2013-01-28 13:19:33 -0500 |
commit | 3cb919022a7ab7628fcd69c28d475d2dbb1cb150 (patch) | |
tree | 469a12a90fe29472eb55f65b23782b92df213b22 /drivers/spi/spi-tegra20-slink.c | |
parent | 52dec4c9eacc339dbf1b2ab549248df1cc6eb030 (diff) |
spi: tegra: do not use clock name to get clock
Since Tegra spi devices do not have multiple clocks, no need to use
clock name to get the clock.
Signed-off-by: Prashant Gaikwad <pgaikwad@nvidia.com>
Acked-by: Grant Likely <grant.likely@secretlab.ca>
Signed-off-by: Stephen Warren <swarren@nvidia.com>
Diffstat (limited to 'drivers/spi/spi-tegra20-slink.c')
-rw-r--r-- | drivers/spi/spi-tegra20-slink.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/spi/spi-tegra20-slink.c b/drivers/spi/spi-tegra20-slink.c index fa208a5cc612..e255e7a35678 100644 --- a/drivers/spi/spi-tegra20-slink.c +++ b/drivers/spi/spi-tegra20-slink.c | |||
@@ -1191,7 +1191,7 @@ static int tegra_slink_probe(struct platform_device *pdev) | |||
1191 | goto exit_free_master; | 1191 | goto exit_free_master; |
1192 | } | 1192 | } |
1193 | 1193 | ||
1194 | tspi->clk = devm_clk_get(&pdev->dev, "slink"); | 1194 | tspi->clk = devm_clk_get(&pdev->dev, NULL); |
1195 | if (IS_ERR(tspi->clk)) { | 1195 | if (IS_ERR(tspi->clk)) { |
1196 | dev_err(&pdev->dev, "can not get clock\n"); | 1196 | dev_err(&pdev->dev, "can not get clock\n"); |
1197 | ret = PTR_ERR(tspi->clk); | 1197 | ret = PTR_ERR(tspi->clk); |