Re: [PATCH] fpga: altera-cvp: fix probing for multiple FPGAs on the bus

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi Alan,

On Wed, 7 Nov 2018 10:05:21 -0600
Alan Tull atull@xxxxxxxxxx wrote:
...
>> > >> +       if (!altera_cvp_cnt++) {
>> > >> +               ret = driver_create_file(&altera_cvp_driver.driver,
>> > >> +                                        &driver_attr_chkcfg);  
>
>Please consider whether moving this to the module init would solve
>your problem without having to add a counter.

This should work and it is a better idea, thanks.

Anatolij



[Index of Archives]     [LM Sensors]     [Linux Sound]     [ALSA Users]     [ALSA Devel]     [Linux Audio Users]     [Linux Media]     [Kernel]     [Gimp]     [Yosemite News]     [Linux Media]

  Powered by Linux