File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -158,6 +158,11 @@ static int rb4xx_spi_probe(struct platform_device *pdev)
158
158
master -> transfer_one = rb4xx_transfer_one ;
159
159
master -> set_cs = rb4xx_set_cs ;
160
160
161
+ rbspi = spi_master_get_devdata (master );
162
+ rbspi -> base = spi_base ;
163
+ rbspi -> clk = ahb_clk ;
164
+ platform_set_drvdata (pdev , rbspi );
165
+
161
166
err = devm_spi_register_master (& pdev -> dev , master );
162
167
if (err ) {
163
168
dev_err (& pdev -> dev , "failed to register SPI master\n" );
@@ -168,11 +173,6 @@ static int rb4xx_spi_probe(struct platform_device *pdev)
168
173
if (err )
169
174
return err ;
170
175
171
- rbspi = spi_master_get_devdata (master );
172
- rbspi -> base = spi_base ;
173
- rbspi -> clk = ahb_clk ;
174
- platform_set_drvdata (pdev , rbspi );
175
-
176
176
/* Enable SPI */
177
177
rb4xx_write (rbspi , AR71XX_SPI_REG_FS , AR71XX_SPI_FS_GPIO );
178
178
You can’t perform that action at this time.
0 commit comments