]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
spi: realtek-rtl-snand: Drop unneeded assignment for cache_type
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Wed, 29 Jan 2025 15:29:25 +0000 (17:29 +0200)
committerMark Brown <broonie@kernel.org>
Mon, 3 Feb 2025 00:41:38 +0000 (00:41 +0000)
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>
drivers/spi/spi-realtek-rtl-snand.c

index cd0484041147f6950731a9b85e2b3cfa0e88c9ef..741cf2af3e9145e7623af2b659e17a670a954ffe 100644 (file)
@@ -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;