[lkml]   [2019]   [Mar]   [3]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
SubjectRe: [PATCH 2/2] spi: dw: Add support for an optional interface clock
On Thu, Feb 28, 2019 at 01:25:42PM +0000, Gareth Williams wrote:
> From: Phil Edworthy <>
> The Synopsys SSI Controller has an interface clock, but most SoCs hide
> this away. However, on some SoCs you need to explicity enable the
> interface clock in order to access the registers. Therefore, add
> support for an optional interface clock.

This doesn't build for me:

CC drivers/spi/spi-dw-mmio.o
drivers/spi/spi-dw-mmio.c: In function ‘dw_spi_mmio_probe’:
drivers/spi/spi-dw-mmio.c:177:18: error: implicit declaration of function ‘devm_clk_get_optional’; did you mean ‘devm_gpiod_get_optional’? [-Werror=implicit-function-declaration]
dwsmmio->pclk = devm_clk_get_optional(&pdev->dev, "pclk");
drivers/spi/spi-dw-mmio.c:177:16: warning: assignment to ‘struct clk *’ from ‘int’ makes pointer from integer without a cast [-Wint-conversion]
dwsmmio->pclk = devm_clk_get_optional(&pdev->dev, "pclk");
[unhandled content-type:application/pgp-signature]
 \ /
  Last update: 2019-03-04 01:05    [W:0.089 / U:11.072 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site