File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -616,6 +616,7 @@ __init int exynos_eint_wkup_init(struct samsung_pinctrl_drv_data *d)
616
616
+ muxed_banks * sizeof (struct samsung_pin_bank * ), GFP_KERNEL );
617
617
if (!muxed_data )
618
618
return - ENOMEM ;
619
+ muxed_data -> nr_banks = muxed_banks ;
619
620
620
621
irq_set_chained_handler_and_data (irq , exynos_irq_demux_eint16_31 ,
621
622
muxed_data );
@@ -628,7 +629,6 @@ __init int exynos_eint_wkup_init(struct samsung_pinctrl_drv_data *d)
628
629
629
630
muxed_data -> banks [idx ++ ] = bank ;
630
631
}
631
- muxed_data -> nr_banks = muxed_banks ;
632
632
633
633
return 0 ;
634
634
}
Original file line number Diff line number Diff line change @@ -159,7 +159,7 @@ struct exynos_weint_data {
159
159
*/
160
160
struct exynos_muxed_weint_data {
161
161
unsigned int nr_banks ;
162
- struct samsung_pin_bank * banks [];
162
+ struct samsung_pin_bank * banks [] __counted_by ( nr_banks ) ;
163
163
};
164
164
165
165
int exynos_eint_gpio_init (struct samsung_pinctrl_drv_data * d );
You can’t perform that action at this time.
0 commit comments