forked from OERV-BSP/u-boot
dm: core: Access device flags through functions
At present flags are stored as part of the device. In preparation for storing them separately, change the access to go through inline functions. Signed-off-by: Simon Glass <sjg@chromium.org>
This commit is contained in:
@@ -122,7 +122,7 @@ static int dm_test_virtio_remove(struct unit_test_state *uts)
|
||||
ut_assertok(virtio_set_status(dev, VIRTIO_CONFIG_S_DRIVER_OK));
|
||||
|
||||
/* check the device can be successfully removed */
|
||||
dev->flags |= DM_FLAG_ACTIVATED;
|
||||
dev_or_flags(dev, DM_FLAG_ACTIVATED);
|
||||
ut_assertok(device_remove(bus, DM_REMOVE_ACTIVE_ALL));
|
||||
|
||||
return 0;
|
||||
|
||||
Reference in New Issue
Block a user