Commit 77a91f4b authored by Geordan Neukum's avatar Geordan Neukum Committed by Greg Kroah-Hartman

staging: kpc2000: kpc_spi: remove unnecessary struct member chip_select

The structure kp_spi_controller_state, defined in the kpc2000_spi
driver, contains a member named chip_select which is never used after
initialization. Therefore, it should be removed for simplicity's sake.
Signed-off-by: default avatarGeordan Neukum <gneukum1@gmail.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent dafcc4a5
...@@ -109,7 +109,6 @@ struct kp_spi { ...@@ -109,7 +109,6 @@ struct kp_spi {
struct kp_spi_controller_state { struct kp_spi_controller_state {
void __iomem *base; void __iomem *base;
unsigned char chip_select;
s64 conf_cache; s64 conf_cache;
}; };
...@@ -267,7 +266,6 @@ kp_spi_setup(struct spi_device *spidev) ...@@ -267,7 +266,6 @@ kp_spi_setup(struct spi_device *spidev)
return -ENOMEM; return -ENOMEM;
} }
cs->base = kpspi->base; cs->base = kpspi->base;
cs->chip_select = spidev->chip_select;
cs->conf_cache = -1; cs->conf_cache = -1;
spidev->controller_state = cs; spidev->controller_state = cs;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment