Merge "hal: Fix device list initializations and comparisons"