struct snd_soc_pcm_runtime *rtd;
        struct snd_soc_dai_link *link, *_link;
 
-       for (order = SND_SOC_COMP_ORDER_FIRST; order <= SND_SOC_COMP_ORDER_LAST;
-                       order++) {
+       for_each_comp_order(order) {
                for_each_card_rtds(card, rtd)
                        soc_remove_link_dais(card, rtd, order);
        }
 
-       for (order = SND_SOC_COMP_ORDER_FIRST; order <= SND_SOC_COMP_ORDER_LAST;
-                       order++) {
+       for_each_comp_order(order) {
                for_each_card_rtds(card, rtd)
                        soc_remove_link_components(card, rtd, order);
        }
        int order;
        int ret;
 
-       for (order = SND_SOC_COMP_ORDER_FIRST; order <= SND_SOC_COMP_ORDER_LAST;
-               order++) {
+       for_each_comp_order(order) {
                list_for_each_entry(comp, &card->aux_comp_list, card_aux_list) {
                        if (comp->driver->probe_order == order) {
                                ret = soc_probe_component(card, comp);
        struct snd_soc_component *comp, *_comp;
        int order;
 
-       for (order = SND_SOC_COMP_ORDER_FIRST; order <= SND_SOC_COMP_ORDER_LAST;
-               order++) {
+       for_each_comp_order(order) {
                list_for_each_entry_safe(comp, _comp,
                        &card->aux_comp_list, card_aux_list) {
 
        }
 
        /* probe all components used by DAI links on this card */
-       for (order = SND_SOC_COMP_ORDER_FIRST; order <= SND_SOC_COMP_ORDER_LAST;
-                       order++) {
+       for_each_comp_order(order) {
                for_each_card_rtds(card, rtd) {
                        ret = soc_probe_link_components(card, rtd, order);
                        if (ret < 0) {
        }
 
        /* probe all DAI links on this card */
-       for (order = SND_SOC_COMP_ORDER_FIRST; order <= SND_SOC_COMP_ORDER_LAST;
-                       order++) {
+       for_each_comp_order(order) {
                for_each_card_rtds(card, rtd) {
                        ret = soc_probe_link_dais(card, rtd, order);
                        if (ret < 0) {