summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>2025-01-29 17:29:25 +0200
committerMark Brown <broonie@kernel.org>2025-02-03 00:41:38 +0000
commitc1ac98492d1584d31f335d233a5cd7a4d4116e5a (patch)
tree7ee0d4077dfec199d13d3ee79d0bf63570bb73c6
parent2014c95afecee3e76ca4a56956a936e23283f05b (diff)
downloadlinux-c1ac98492d1584d31f335d233a5cd7a4d4116e5a.tar.gz
linux-c1ac98492d1584d31f335d233a5cd7a4d4116e5a.tar.bz2
linux-c1ac98492d1584d31f335d233a5cd7a4d4116e5a.zip
spi: realtek-rtl-snand: Drop unneeded assignment for cache_type
REGCACHE_NONE is the default type of the cache when not provided. Drop unneeded explicit assignment to it. Note, it's defined to 0, and if ever be redefined, it will break literally a lot of the drivers, so it very unlikely to happen. Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com> Link: https://patch.msgid.link/20250129152925.1804071-1-andriy.shevchenko@linux.intel.com Reviewed-by: Chris Packham <chris.packham@alliedtelesis.co.nz> Signed-off-by: Mark Brown <broonie@kernel.org>
-rw-r--r--drivers/spi/spi-realtek-rtl-snand.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/spi/spi-realtek-rtl-snand.c b/drivers/spi/spi-realtek-rtl-snand.c
index cd0484041147..741cf2af3e91 100644
--- a/drivers/spi/spi-realtek-rtl-snand.c
+++ b/drivers/spi/spi-realtek-rtl-snand.c
@@ -364,7 +364,6 @@ static int rtl_snand_probe(struct platform_device *pdev)
.reg_bits = 32,
.val_bits = 32,
.reg_stride = 4,
- .cache_type = REGCACHE_NONE,
};
int irq, ret;