[PATCH v2 17/30] ide: Move bus init into a function