Skip to contentSkip to conversation

regulator: vexpress: Add terminating entry for vexpress_regulator_of_match table

PATCH Applied Axel Lin 3 participants 3 messages Oct 17, 2012

Subsystems (2)
lore
Share & tools
lore

Axel Lin

author
#0 lore raw

PATCH 1/1 regulator: vexpress: Add terminating entry for vexpress_regulator_of_match table

The of_device_id table is supposed to be zero-terminated.

---
 drivers/regulator/vexpress.c |    1 +
 1 file changed, 1 insertion(+)
drivers/regulator/vexpress.c +1 -0
index 1702945..1d55811 100644
@@ -126,6 +126,7 @@ static int __devexit vexpress_regulator_remove(struct platform_device *pdev)
 
 static struct of_device_id vexpress_regulator_of_match[] = {
 	{ .compatible = "arm,vexpress-volt", },
+	{ }
 };
 
 static struct platform_driver vexpress_regulator_driver = {
Signature · 1 line
1.7.9.5
Applied
#1 lore raw
Quoted 1 line · Axel Lin

The of_device_id table is supposed to be zero-terminated.

Applied, thanks.

#2 lore raw
In reply to Axel Lin
Quoted 1 line · Axel Lin

The of_device_id table is supposed to be zero-terminated.

Damn, stupid mistake. Thanks for spotting this!

Pawel