Skip to contentSkip to conversation

ufshcd-pltfrm: add missing empty slot in ufs_of_match[]

PATCH In review Akinobu Mita 2 participants 2 messages May 26, 2013 – May 27, 2013 SCSI

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 ufshcd-pltfrm: add missing empty slot in ufs_of_match[]

of_match_table member in struct device_driver must be terminated by empty slot as a sentinel.

Cc Vinayak Holikatti <[email protected]>
Cc Santosh Y <[email protected]>
Cc "James E.J. Bottomley" <[email protected]>
---
 drivers/scsi/ufs/ufshcd-pltfrm.c | 1 +
 1 file changed, 1 insertion(+)
drivers/scsi/ufs/ufshcd-pltfrm.c +1 -0
index 03319ac..0014e28 100644
@@ -190,6 +190,7 @@ static int ufshcd_pltfrm_remove(struct platform_device *pdev)
 
 static const struct of_device_id ufs_of_match[] = {
 	{ .compatible = "jedec,ufs-1.1"},
+	{},
 };
 
 static const struct dev_pm_ops ufshcd_dev_pm_ops = {
Signature · 1 line
1.8.1.4
Acked-by on v1 1/1
#1 lore raw
Quoted 25 lines · Akinobu Mita

of_match_table member in struct device_driver must be terminated by empty slot as a sentinel.

Cc Vinayak Holikatti <[email protected]>
Cc Santosh Y <[email protected]>
Cc "James E.J. Bottomley" <[email protected]>
---
 drivers/scsi/ufs/ufshcd-pltfrm.c | 1 +
 1 file changed, 1 insertion(+)
drivers/scsi/ufs/ufshcd-pltfrm.c +1 -1
index 03319ac..0014e28 100644
@@ -190,6 +190,7 @@ static int ufshcd_pltfrm_remove(struct platform_device *pdev)
 
 static const struct of_device_id ufs_of_match[] = {
        { .compatible = "jedec,ufs-1.1"},
+       {},
 };
 
 static const struct dev_pm_ops ufshcd_dev_pm_ops = {
--
Quoted 2 lines

1.8.1.4

Signature · 1 line
~Santosh