File tree Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -255,7 +255,9 @@ static Property stm32_afio_properties[] = {
255
255
static void add_gpio_link (Stm32Afio * s , int gpio_index , const char * link_name )
256
256
{
257
257
object_property_add_link (OBJECT (s ), link_name , TYPE_STM32_GPIO ,
258
- (Object * * )& s -> gpio [gpio_index ], NULL );
258
+ (Object * * )& s -> gpio [gpio_index ],
259
+ object_property_allow_set_link ,
260
+ OBJ_PROP_LINK_UNREF_ON_RELEASE , & error_abort );
259
261
}
260
262
261
263
static void stm32_afio_instance_init (Object * obj )
@@ -271,7 +273,9 @@ static void stm32_afio_instance_init(Object *obj)
271
273
add_gpio_link (s , 6 , "gpio[g]" );
272
274
273
275
object_property_add_link (obj , "exti" , TYPE_STM32_EXTI ,
274
- (Object * * )& s -> exti , NULL );
276
+ (Object * * )& s -> exti ,
277
+ object_property_allow_set_link ,
278
+ OBJ_PROP_LINK_UNREF_ON_RELEASE , & error_abort );
275
279
276
280
}
277
281
You can’t perform that action at this time.
0 commit comments