File tree Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -182,6 +182,7 @@ struct rockchip_sfc {
182
182
bool use_dma ;
183
183
u32 max_iosize ;
184
184
u16 version ;
185
+ struct spi_controller * host ;
185
186
};
186
187
187
188
static int rockchip_sfc_reset (struct rockchip_sfc * sfc )
@@ -574,6 +575,7 @@ static int rockchip_sfc_probe(struct platform_device *pdev)
574
575
575
576
sfc = spi_controller_get_devdata (host );
576
577
sfc -> dev = dev ;
578
+ sfc -> host = host ;
577
579
578
580
sfc -> regbase = devm_platform_ioremap_resource (pdev , 0 );
579
581
if (IS_ERR (sfc -> regbase ))
@@ -651,8 +653,8 @@ static int rockchip_sfc_probe(struct platform_device *pdev)
651
653
652
654
static void rockchip_sfc_remove (struct platform_device * pdev )
653
655
{
654
- struct spi_controller * host = platform_get_drvdata (pdev );
655
656
struct rockchip_sfc * sfc = platform_get_drvdata (pdev );
657
+ struct spi_controller * host = sfc -> host ;
656
658
657
659
spi_unregister_controller (host );
658
660
You can’t perform that action at this time.
0 commit comments