summaryrefslogtreecommitdiffstats
path: root/drivers/pcmcia/ds.c
diff options
context:
space:
mode:
authorDominik Brodowski2005-11-12 23:34:06 +0100
committerDominik Brodowski2005-11-12 23:35:34 +0100
commit807277cbf9a240b133ee378a53b65375088ef62a (patch)
treee908475eb7cd340b58946e2ab8b55b2573944dbc /drivers/pcmcia/ds.c
parent[PCMCIA] i82365: use new platform_device helpers (diff)
downloadkernel-qcow2-linux-807277cbf9a240b133ee378a53b65375088ef62a.tar.gz
kernel-qcow2-linux-807277cbf9a240b133ee378a53b65375088ef62a.tar.xz
kernel-qcow2-linux-807277cbf9a240b133ee378a53b65375088ef62a.zip
[PCMCIA] inform user of insertion and ejection events
Print out minimal information in dmesg whnever a CardBus or PCMCIA card is inserted into or ejected from a slot. This will make debugging certain types of bugs much easier, and is similar to output produced by other hotpluggable buses. Signed-off-by: Dominik Brodowski <linux@dominikbrodowski.net>
Diffstat (limited to 'drivers/pcmcia/ds.c')
-rw-r--r--drivers/pcmcia/ds.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/pcmcia/ds.c b/drivers/pcmcia/ds.c
index 39d096b52926..7f8219f3fd9e 100644
--- a/drivers/pcmcia/ds.c
+++ b/drivers/pcmcia/ds.c
@@ -544,6 +544,9 @@ struct pcmcia_device * pcmcia_device_add(struct pcmcia_socket *s, unsigned int f
list_add_tail(&p_dev->socket_device_list, &s->devices_list);
spin_unlock_irqrestore(&pcmcia_dev_list_lock, flags);
+ printk(KERN_NOTICE "pcmcia: registering new device %s\n",
+ p_dev->devname);
+
pcmcia_device_query(p_dev);
if (device_register(&p_dev->dev)) {