diff options
Diffstat (limited to 'drivers/pcmcia/pcmcia_resource.c')
-rw-r--r-- | drivers/pcmcia/pcmcia_resource.c | 13 |
1 files changed, 8 insertions, 5 deletions
diff --git a/drivers/pcmcia/pcmcia_resource.c b/drivers/pcmcia/pcmcia_resource.c index 4884a18cf9e6..79058825c6f2 100644 --- a/drivers/pcmcia/pcmcia_resource.c +++ b/drivers/pcmcia/pcmcia_resource.c | |||
@@ -49,11 +49,12 @@ extern int ds_pc_debug; | |||
49 | 49 | ||
50 | #define ds_dbg(skt, lvl, fmt, arg...) do { \ | 50 | #define ds_dbg(skt, lvl, fmt, arg...) do { \ |
51 | if (ds_pc_debug >= lvl) \ | 51 | if (ds_pc_debug >= lvl) \ |
52 | printk(KERN_DEBUG "pcmcia_resource: %s: " fmt, \ | 52 | dev_printk(KERN_DEBUG, &skt->dev, \ |
53 | cs_socket_name(skt) , ## arg); \ | 53 | "pcmcia_resource: " fmt, \ |
54 | ## arg); \ | ||
54 | } while (0) | 55 | } while (0) |
55 | #else | 56 | #else |
56 | #define ds_dbg(lvl, fmt, arg...) do { } while (0) | 57 | #define ds_dbg(skt, lvl, fmt, arg...) do { } while (0) |
57 | #endif | 58 | #endif |
58 | 59 | ||
59 | 60 | ||
@@ -802,8 +803,10 @@ int pcmcia_request_irq(struct pcmcia_device *p_dev, irq_req_t *req) | |||
802 | /* Make sure the fact the request type was overridden is passed back */ | 803 | /* Make sure the fact the request type was overridden is passed back */ |
803 | if (type == IRQF_SHARED && !(req->Attributes & IRQ_TYPE_DYNAMIC_SHARING)) { | 804 | if (type == IRQF_SHARED && !(req->Attributes & IRQ_TYPE_DYNAMIC_SHARING)) { |
804 | req->Attributes |= IRQ_TYPE_DYNAMIC_SHARING; | 805 | req->Attributes |= IRQ_TYPE_DYNAMIC_SHARING; |
805 | printk(KERN_WARNING "pcmcia: request for exclusive IRQ could not be fulfilled.\n"); | 806 | dev_printk(KERN_WARNING, &p_dev->dev, "pcmcia: " |
806 | printk(KERN_WARNING "pcmcia: the driver needs updating to supported shared IRQ lines.\n"); | 807 | "request for exclusive IRQ could not be fulfilled.\n"); |
808 | dev_printk(KERN_WARNING, &p_dev->dev, "pcmcia: the driver " | ||
809 | "needs updating to supported shared IRQ lines.\n"); | ||
807 | } | 810 | } |
808 | c->irq.Attributes = req->Attributes; | 811 | c->irq.Attributes = req->Attributes; |
809 | s->irq.AssignedIRQ = req->AssignedIRQ = irq; | 812 | s->irq.AssignedIRQ = req->AssignedIRQ = irq; |