File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -868,11 +868,11 @@ static int reset_add_gpio_aux_device(struct device *parent,
868868 */
869869static int __reset_add_reset_gpio_device (const struct of_phandle_args * args )
870870{
871- struct property_entry properties [2 ] = { };
871+ struct property_entry properties [3 ] = { };
872872 unsigned int offset , of_flags , lflags ;
873873 struct reset_gpio_lookup * rgpio_dev ;
874874 struct device * parent ;
875- int id , ret ;
875+ int id , ret , prop = 0 ;
876876
877877 /*
878878 * Currently only #gpio-cells=2 is supported with the meaning of:
@@ -923,7 +923,8 @@ static int __reset_add_reset_gpio_device(const struct of_phandle_args *args)
923923
924924 lflags = GPIO_PERSISTENT | (of_flags & GPIO_ACTIVE_LOW );
925925 parent = gpio_device_to_device (gdev );
926- properties [0 ] = PROPERTY_ENTRY_GPIO ("reset-gpios" , parent -> fwnode , offset , lflags );
926+ properties [prop ++ ] = PROPERTY_ENTRY_STRING ("compatible" , "reset-gpio" );
927+ properties [prop ++ ] = PROPERTY_ENTRY_GPIO ("reset-gpios" , parent -> fwnode , offset , lflags );
927928
928929 id = ida_alloc (& reset_gpio_ida , GFP_KERNEL );
929930 if (id < 0 )
You can’t perform that action at this time.
0 commit comments