[PATCH v1] can: mcp251x: Add missed array marker for properties

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Properties structure is an array where the last, NULL one,
used as a terminator.

Fixes: c5176177e860 ("can: mcp251x: Get rid of legacy platform data")
Reported-by: kbuild test robot <lkp@xxxxxxxxx>
Cc: Daniel Mack <daniel@xxxxxxxxxx>
Cc: Haojian Zhuang <haojian.zhuang@xxxxxxxxx>
Cc: Robert Jarzmik <robert.jarzmik@xxxxxxx>
Cc: Russell King <linux@xxxxxxxxxxxxxxx>
Signed-off-by: Andy Shevchenko <andriy.shevchenko@xxxxxxxxxxxxxxx>
---

Marc, depending on your flow, since the culprit is in testing branch, consider
either follow up fixup, or folding it into the previous patch.

 arch/arm/mach-pxa/icontrol.c | 2 +-
 arch/arm/mach-pxa/zeus.c     | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/arch/arm/mach-pxa/icontrol.c b/arch/arm/mach-pxa/icontrol.c
index aa4ccb9bb1c1..43d601b4f8a7 100644
--- a/arch/arm/mach-pxa/icontrol.c
+++ b/arch/arm/mach-pxa/icontrol.c
@@ -69,7 +69,7 @@ static struct pxa2xx_spi_chip mcp251x_chip_info4 = {
 	.gpio_cs        = ICONTROL_MCP251x_nCS4
 };
 
-static const struct property_entry mcp251x_properties = {
+static const struct property_entry mcp251x_properties[] = {
 	PROPERTY_ENTRY_U32("clock-frequency", 16000000),
 	{}
 };
diff --git a/arch/arm/mach-pxa/zeus.c b/arch/arm/mach-pxa/zeus.c
index 645500ef427a..cc6576a14781 100644
--- a/arch/arm/mach-pxa/zeus.c
+++ b/arch/arm/mach-pxa/zeus.c
@@ -428,7 +428,7 @@ static struct gpiod_lookup_table can_regulator_gpiod_table = {
 	},
 };
 
-static const struct property_entry mcp251x_properties = {
+static const struct property_entry mcp251x_properties[] = {
 	PROPERTY_ENTRY_U32("clock-frequency", 16000000),
 	{}
 };
-- 
2.23.0.rc1




[Index of Archives]     [Automotive Discussions]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux]     [Linux OMAP]     [Linux MIPS]     [eCos]     [Asterisk Internet PBX]     [Linux API]     [CAN Bus]

  Powered by Linux