Commit ac449d6e authored by Dominik Brodowski's avatar Dominik Brodowski

pcmcia: use dev_printk in module pcmcia

(includes bugfix from and
Signed-off-by: default avatarHarvey Harrison <harvey.harrison@gmail.com>
)
Signed-off-by: default avatarDominik Brodowski <linux@dominikbrodowski.net>
parent 2e55bf6b
This diff is collapsed.
...@@ -49,11 +49,12 @@ extern int ds_pc_debug; ...@@ -49,11 +49,12 @@ extern int ds_pc_debug;
#define ds_dbg(skt, lvl, fmt, arg...) do { \ #define ds_dbg(skt, lvl, fmt, arg...) do { \
if (ds_pc_debug >= lvl) \ if (ds_pc_debug >= lvl) \
printk(KERN_DEBUG "pcmcia_resource: %s: " fmt, \ dev_printk(KERN_DEBUG, &skt->dev, \
cs_socket_name(skt) , ## arg); \ "pcmcia_resource: " fmt, \
## arg); \
} while (0) } while (0)
#else #else
#define ds_dbg(lvl, fmt, arg...) do { } while (0) #define ds_dbg(skt, lvl, fmt, arg...) do { } while (0)
#endif #endif
...@@ -802,8 +803,10 @@ int pcmcia_request_irq(struct pcmcia_device *p_dev, irq_req_t *req) ...@@ -802,8 +803,10 @@ int pcmcia_request_irq(struct pcmcia_device *p_dev, irq_req_t *req)
/* Make sure the fact the request type was overridden is passed back */ /* Make sure the fact the request type was overridden is passed back */
if (type == IRQF_SHARED && !(req->Attributes & IRQ_TYPE_DYNAMIC_SHARING)) { if (type == IRQF_SHARED && !(req->Attributes & IRQ_TYPE_DYNAMIC_SHARING)) {
req->Attributes |= IRQ_TYPE_DYNAMIC_SHARING; req->Attributes |= IRQ_TYPE_DYNAMIC_SHARING;
printk(KERN_WARNING "pcmcia: request for exclusive IRQ could not be fulfilled.\n"); dev_printk(KERN_WARNING, &p_dev->dev, "pcmcia: "
printk(KERN_WARNING "pcmcia: the driver needs updating to supported shared IRQ lines.\n"); "request for exclusive IRQ could not be fulfilled.\n");
dev_printk(KERN_WARNING, &p_dev->dev, "pcmcia: the driver "
"needs updating to supported shared IRQ lines.\n");
} }
c->irq.Attributes = req->Attributes; c->irq.Attributes = req->Attributes;
s->irq.AssignedIRQ = req->AssignedIRQ = irq; s->irq.AssignedIRQ = req->AssignedIRQ = irq;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment