[ATM]: attempt to autoload atm drivers

From: Mitchell Blank Jr <mitch@sfgoth.com>
Signed-off-by: Chas Williams <chas@cmf.nrl.navy.mil>
Signed-off-by: David S. Miller <davem@davemloft.net>

authored by Mitchell Blank Jr and committed by David S. Miller 50accc9c e91a7356

+3 -2
+1 -1
net/atm/common.c
··· 424 424 vcc->qos.rxtp.traffic_class == ATM_ANYCLASS) 425 425 return -EINVAL; 426 426 if (likely(itf != ATM_ITF_ANY)) { 427 - dev = atm_dev_lookup(itf); 427 + dev = try_then_request_module(atm_dev_lookup(itf), "atm-device-%d", itf); 428 428 } else { 429 429 dev = NULL; 430 430 spin_lock(&atm_dev_lock);
+2 -1
net/atm/resources.c
··· 245 245 if (get_user(number, &sioc->number)) 246 246 return -EFAULT; 247 247 248 - if (!(dev = atm_dev_lookup(number))) 248 + if (!(dev = try_then_request_module(atm_dev_lookup(number), 249 + "atm-device-%d", number))) 249 250 return -ENODEV; 250 251 251 252 switch (cmd) {