* Initialize all chips of statically known devices. * * Will be called before bus enumeration to initialize chips stated in the * device tree. */
| 33 | * device tree. |
| 34 | */ |
| 35 | void dev_initialize_chips(void) |
| 36 | { |
| 37 | const struct device *dev; |
| 38 | |
| 39 | for (dev = all_devices; dev; dev = dev->next) { |
| 40 | /* Initialize chip if we haven't yet. */ |
| 41 | if (dev->chip_ops && dev->chip_ops->init && |
| 42 | !dev->chip_ops->initialized) { |
| 43 | post_log_path(dev); |
| 44 | dev->chip_ops->init(dev->chip_info); |
| 45 | dev->chip_ops->initialized = 1; |
| 46 | } |
| 47 | } |
| 48 | post_log_clear(); |
| 49 | } |
| 50 | |
| 51 | /** |
| 52 | * Finalize all chips of statically known devices. |
no test coverage detected