[linux-yocto] [PATCH 1/2] mfd: intel_vuport: use back property_set struct

wan.ahmad.zainie.wan.mohamad at intel.com wan.ahmad.zainie.wan.mohamad at intel.com
Tue Jul 19 01:16:00 PDT 2016


From: Wan Ahmad Zainie <wan.ahmad.zainie.wan.mohamad at intel.com>

Fix for this compilation error,

drivers/mfd/intel-vuport.c:38:3:
error: unknown field ‘properties’ specified in initializer
   .properties = reg_properties,

due to missing commit f4d052660323 ("device property: don't bother the
drivers with struct property_set") from mainline.

Signed-off-by: Wan Ahmad Zainie <wan.ahmad.zainie.wan.mohamad at intel.com>
---
 drivers/mfd/intel-vuport.c | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/drivers/mfd/intel-vuport.c b/drivers/mfd/intel-vuport.c
index f04e6fb..fa84ed7 100644
--- a/drivers/mfd/intel-vuport.c
+++ b/drivers/mfd/intel-vuport.c
@@ -31,11 +31,15 @@ static struct property_entry reg_properties[] = {
 	{ },
 };
 
+static const struct property_set reg_properties_pset = {
+	.properties = reg_properties,
+};
+
 static const struct mfd_cell intel_vuport_mfd_cells[] = {
 	{ .name = "extcon-usb-gpio", },
 	{
 		.name = "reg-fixed-voltage",
-		.properties = reg_properties,
+		.pset = &reg_properties_pset,
 	},
 	{ .name = "intel-mux-gpio", },
 };
-- 
1.9.1



More information about the linux-yocto mailing list