On Thu, Sep 08, 2022 at 02:22:59PM +0530, Viresh Kumar wrote:
In order to prepare for adding support for more device types, create a separate routine to allocate base and irq for a device as the same code will be required for other device types too.
Also move updates to virtio_irq and virtio_enabled out of the disk device specific block, as they will depend on other device types too.
Suggested-by: Oleksandr Tyshchenko oleksandr_tyshchenko@epam.com Reviewed-by: Oleksandr Tyshchenko oleksandr_tyshchenko@epam.com Signed-off-by: Viresh Kumar viresh.kumar@linaro.org
Reviewed-by: Anthony PERARD anthony.perard@citrix.com
Thanks,