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

staging: kpc2000: kpc_spi: remove unnecessary struct member pin_dir

The structure kpc_spi, defined in in the kpc2000_spi driver, contains
a member named pin_dir 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 8b378650
...@@ -105,7 +105,6 @@ struct kp_spi { ...@@ -105,7 +105,6 @@ struct kp_spi {
u64 __iomem *base; u64 __iomem *base;
unsigned long phys; unsigned long phys;
struct device *dev; struct device *dev;
unsigned int pin_dir:1;
}; };
struct kp_spi_controller_state { struct kp_spi_controller_state {
...@@ -460,7 +459,6 @@ kp_spi_probe(struct platform_device *pldev) ...@@ -460,7 +459,6 @@ kp_spi_probe(struct platform_device *pldev)
if (pldev->id != -1) { if (pldev->id != -1) {
master->bus_num = pldev->id; master->bus_num = pldev->id;
} }
kpspi->pin_dir = 0;
r = platform_get_resource(pldev, IORESOURCE_MEM, 0); r = platform_get_resource(pldev, IORESOURCE_MEM, 0);
if (r == NULL) { if (r == NULL) {
......
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