DL_FLAG_AUTOREMOVE_CONSUMER/SUPPLIER means "Remove the link
automatically on consumer/supplier driver unbind", that means we should
remove whole the device_link when there is no this driver no matter what
the ref_count of the link is.
CC: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Yong Wu <yong.wu@mediatek.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
                        continue;
 
                if (link->flags & DL_FLAG_AUTOREMOVE_CONSUMER)
-                       kref_put(&link->kref, __device_link_del);
+                       __device_link_del(&link->kref);
                else if (link->status != DL_STATE_SUPPLIER_UNBIND)
                        WRITE_ONCE(link->status, DL_STATE_AVAILABLE);
        }
                 */
                if (link->status == DL_STATE_SUPPLIER_UNBIND &&
                    link->flags & DL_FLAG_AUTOREMOVE_SUPPLIER)
-                       kref_put(&link->kref, __device_link_del);
+                       __device_link_del(&link->kref);
 
                WRITE_ONCE(link->status, DL_STATE_DORMANT);
        }