From: Jingoo Han Date: Tue, 3 Jun 2014 12:04:59 +0000 (+0900) Subject: spi: sh-hspi: Make of_device_id array const X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=8e3489f3b6c159079cf690d0913409e1178ccf2f;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.git spi: sh-hspi: Make of_device_id array const Make of_device_id array const, because all OF functions handle it as const. Signed-off-by: Jingoo Han Acked-by: Geert Uytterhoeven Acked-by: Kuninori Morimoto Signed-off-by: Mark Brown --- diff --git a/drivers/spi/spi-sh-hspi.c b/drivers/spi/spi-sh-hspi.c index c8e795ef2e13..94b5faed21e2 100644 --- a/drivers/spi/spi-sh-hspi.c +++ b/drivers/spi/spi-sh-hspi.c @@ -304,7 +304,7 @@ static int hspi_remove(struct platform_device *pdev) return 0; } -static struct of_device_id hspi_of_match[] = { +static const struct of_device_id hspi_of_match[] = { { .compatible = "renesas,hspi", }, { /* sentinel */ } };