diff options
Diffstat (limited to 'drivers/spi/spi-pl022.c')
-rw-r--r-- | drivers/spi/spi-pl022.c | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/drivers/spi/spi-pl022.c b/drivers/spi/spi-pl022.c index 9c511a954d21..5e3011094eb6 100644 --- a/drivers/spi/spi-pl022.c +++ b/drivers/spi/spi-pl022.c | |||
@@ -1619,7 +1619,6 @@ static int verify_controller_parameters(struct pl022 *pl022, | |||
1619 | dev_err(&pl022->adev->dev, | 1619 | dev_err(&pl022->adev->dev, |
1620 | "RX FIFO Trigger Level is configured incorrectly\n"); | 1620 | "RX FIFO Trigger Level is configured incorrectly\n"); |
1621 | return -EINVAL; | 1621 | return -EINVAL; |
1622 | break; | ||
1623 | } | 1622 | } |
1624 | switch (chip_info->tx_lev_trig) { | 1623 | switch (chip_info->tx_lev_trig) { |
1625 | case SSP_TX_1_OR_MORE_EMPTY_LOC: | 1624 | case SSP_TX_1_OR_MORE_EMPTY_LOC: |
@@ -1645,7 +1644,6 @@ static int verify_controller_parameters(struct pl022 *pl022, | |||
1645 | dev_err(&pl022->adev->dev, | 1644 | dev_err(&pl022->adev->dev, |
1646 | "TX FIFO Trigger Level is configured incorrectly\n"); | 1645 | "TX FIFO Trigger Level is configured incorrectly\n"); |
1647 | return -EINVAL; | 1646 | return -EINVAL; |
1648 | break; | ||
1649 | } | 1647 | } |
1650 | if (chip_info->iface == SSP_INTERFACE_NATIONAL_MICROWIRE) { | 1648 | if (chip_info->iface == SSP_INTERFACE_NATIONAL_MICROWIRE) { |
1651 | if ((chip_info->ctrl_len < SSP_BITS_4) | 1649 | if ((chip_info->ctrl_len < SSP_BITS_4) |
@@ -2227,7 +2225,7 @@ static int pl022_probe(struct amba_device *adev, const struct amba_id *id) | |||
2227 | 2225 | ||
2228 | /* Register with the SPI framework */ | 2226 | /* Register with the SPI framework */ |
2229 | amba_set_drvdata(adev, pl022); | 2227 | amba_set_drvdata(adev, pl022); |
2230 | status = spi_register_master(master); | 2228 | status = devm_spi_register_master(&adev->dev, master); |
2231 | if (status != 0) { | 2229 | if (status != 0) { |
2232 | dev_err(&adev->dev, | 2230 | dev_err(&adev->dev, |
2233 | "probe - problem registering spi master\n"); | 2231 | "probe - problem registering spi master\n"); |
@@ -2287,8 +2285,6 @@ pl022_remove(struct amba_device *adev) | |||
2287 | clk_unprepare(pl022->clk); | 2285 | clk_unprepare(pl022->clk); |
2288 | amba_release_regions(adev); | 2286 | amba_release_regions(adev); |
2289 | tasklet_disable(&pl022->pump_transfers); | 2287 | tasklet_disable(&pl022->pump_transfers); |
2290 | spi_unregister_master(pl022->master); | ||
2291 | amba_set_drvdata(adev, NULL); | ||
2292 | return 0; | 2288 | return 0; |
2293 | } | 2289 | } |
2294 | 2290 | ||