mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-08-21 08:19:28 +00:00
spi: sh-msiof: fix *info pointer in request_dma()
sh_msiof_spi_info *info struct pointer was initialized in the probe() function no need to get back and keep consistency. Signed-off-by: Hoan Nguyen An <na-hoan@jinso.co.jp> Reviewed-by: Geert Uytterhoeven <geert+renesas@glider.be> Signed-off-by: Mark Brown <broonie@kernel.org>
This commit is contained in:
parent
88e7e0a8df
commit
f70351ae06
1 changed files with 1 additions and 1 deletions
|
@ -1206,7 +1206,7 @@ static int sh_msiof_request_dma(struct sh_msiof_spi_priv *p)
|
|||
{
|
||||
struct platform_device *pdev = p->pdev;
|
||||
struct device *dev = &pdev->dev;
|
||||
const struct sh_msiof_spi_info *info = dev_get_platdata(dev);
|
||||
const struct sh_msiof_spi_info *info = p->info;
|
||||
unsigned int dma_tx_id, dma_rx_id;
|
||||
const struct resource *res;
|
||||
struct spi_master *master;
|
||||
|
|
Loading…
Reference in a new issue