diff options
author | Michael Davidsaver <mdavidsaver@gmail.com> | 2017-10-20 09:38:52 -0500 |
---|---|---|
committer | David Gibson <david@gibson.dropbear.id.au> | 2017-11-08 13:21:37 +1100 |
commit | c91c187f715aded9e1ac28412bba41fd3cbaf010 (patch) | |
tree | f2e27e9de26a6dea081b34477c9654dee5fc3390 /block/commit.c | |
parent | 79b217dedb5ce70c5bc169b5e64b8a1f0d4bef9c (diff) |
e500: ppce500_init_mpic() return device instead of IRQ array
Actual number of interrupt pins isn't known
in ppce500_init_mpic() so a hardcoded number
was used, which causes a crash with older openpic.
Instead, return the DeviceState* and change ppce500_init()
to call qdev_get_gpio_in() to get only the irq pins
which are needed.
Signed-off-by: Michael Davidsaver <mdavidsaver@gmail.com>
Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
Diffstat (limited to 'block/commit.c')
0 files changed, 0 insertions, 0 deletions