pcmcia: use ops_mutex for rsrc_{mgr,nonstatic} locking
[firefly-linux-kernel-4.4.55.git] / drivers / pcmcia / rsrc_mgr.c
index b81586622d028102628d2147686244a0f3c8fc00..aca2cfd02ca5406b1ee9aa23fc77846591ab3ce3 100644 (file)
@@ -26,9 +26,7 @@ static int static_init(struct pcmcia_socket *s)
        /* the good thing about SS_CAP_STATIC_MAP sockets is
         * that they don't need a resource database */
 
-       mutex_lock(&s->ops_mutex);
        s->resource_setup_done = 1;
-       mutex_unlock(&s->ops_mutex);
 
        return 0;
 }