diff options
author | Dominik Brodowski <linux@dominikbrodowski.net> | 2008-08-02 12:33:56 -0400 |
---|---|---|
committer | Dominik Brodowski <linux@dominikbrodowski.net> | 2008-08-22 19:53:23 -0400 |
commit | ac449d6e2c81d26f91d092aba114ab3cb2a02ca0 (patch) | |
tree | 8c0d97749772dc465517ab5de137288f6165b004 /drivers/pcmcia/pcmcia_resource.c | |
parent | 2e55bf6b99fb05f3f4228e7f1381624ac8ac7e3d (diff) |
pcmcia: use dev_printk in module pcmcia
(includes bugfix from and
Signed-off-by: Harvey Harrison <harvey.harrison@gmail.com>
)
Signed-off-by: Dominik Brodowski <linux@dominikbrodowski.net>
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; |