]> git.kernelconcepts.de Git - karo-tx-linux.git/commitdiff
spi: tegra20-sflash: Make of_device_id array const
authorJingoo Han <jg1.han@samsung.com>
Wed, 7 May 2014 07:51:52 +0000 (16:51 +0900)
committerMark Brown <broonie@linaro.org>
Wed, 7 May 2014 19:53:05 +0000 (20:53 +0100)
Make of_device_id array const, because all OF functions
handle it as const.

Signed-off-by: Jingoo Han <jg1.han@samsung.com>
Signed-off-by: Mark Brown <broonie@linaro.org>
drivers/spi/spi-tegra20-sflash.c

index 47869ea636e16189cbe651ad3426b338a670d1b7..3548ce25c08fbe44f4528f3dcdac68d4aeec0f7c 100644 (file)
@@ -419,7 +419,7 @@ static irqreturn_t tegra_sflash_isr(int irq, void *context_data)
        return handle_cpu_based_xfer(tsd);
 }
 
-static struct of_device_id tegra_sflash_of_match[] = {
+static const struct of_device_id tegra_sflash_of_match[] = {
        { .compatible = "nvidia,tegra20-sflash", },
        {}
 };