Skip to content

Commit c1ac984

Browse files
andy-shevbroonie
authored andcommitted
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>
1 parent 2014c95 commit c1ac984

1 file changed

Lines changed: 0 additions & 1 deletion

File tree

drivers/spi/spi-realtek-rtl-snand.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -364,7 +364,6 @@ static int rtl_snand_probe(struct platform_device *pdev)
364364
.reg_bits = 32,
365365
.val_bits = 32,
366366
.reg_stride = 4,
367-
.cache_type = REGCACHE_NONE,
368367
};
369368
int irq, ret;
370369

0 commit comments

Comments
 (0)