pcmcia: ensure correct logging in do_io_probe

Signed-off-by: Dominik Brodowski <linux@dominikbrodowski.net>

+6 -6
+6 -6
drivers/pcmcia/cs.c
··· 186 186 187 187 spin_lock_init(&socket->lock); 188 188 189 - if (socket->resource_ops->init) { 190 - ret = socket->resource_ops->init(socket); 191 - if (ret) 192 - return (ret); 193 - } 194 - 195 189 /* try to obtain a socket number [yes, it gets ugly if we 196 190 * register more than 2^sizeof(unsigned int) pcmcia 197 191 * sockets... but the socket number is deprecated ··· 232 238 init_completion(&socket->thread_done); 233 239 mutex_init(&socket->skt_mutex); 234 240 spin_lock_init(&socket->thread_lock); 241 + 242 + if (socket->resource_ops->init) { 243 + ret = socket->resource_ops->init(socket); 244 + if (ret) 245 + goto err; 246 + } 235 247 236 248 tsk = kthread_run(pccardd, socket, "pccardd"); 237 249 if (IS_ERR(tsk)) {