device: restore init_res bit field

After b5f3cf8006 some platforms
(qemu_riscv32_xip) are not able to boot. Re-introduce the bit field for
init_res, using `unsigned int` (valids are signed/unsigned int, and
bool).

Signed-off-by: Gerard Marull-Paretas <gerard.marull@nordicsemi.no>
This commit is contained in:
Gerard Marull-Paretas 2022-10-17 14:09:50 +02:00 committed by Carles Cufí
parent 2230857a44
commit c109491f1a

View file

@ -354,9 +354,9 @@ struct device_state {
*
* Device initialization functions return a negative errno code if they
* fail. In Zephyr, errno values do not exceed 255, so we can store the
* positive result value in a uint8_t type.
* positive result value using 8 bits.
*/
uint8_t init_res;
unsigned int init_res : 8;
/** Indicates the device initialization function has been
* invoked.