Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 8744
b: refs/heads/master
c: c352ec8
h: refs/heads/master
v: v3
  • Loading branch information
Dominik Brodowski authored and Linus Torvalds committed Sep 13, 2005
1 parent dceee20 commit 1be8c81
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: db84502b0229ed3075ca74b7d34eb8c609de3200
refs/heads/master: c352ec8ab87b065cd2edda171811f49ac7d0d5cd
12 changes: 12 additions & 0 deletions trunk/drivers/pcmcia/pcmcia_ioctl.c
Original file line number Diff line number Diff line change
Expand Up @@ -376,6 +376,7 @@ static int ds_open(struct inode *inode, struct file *file)
socket_t i = iminor(inode);
struct pcmcia_socket *s;
user_info_t *user;
static int warning_printed = 0;

ds_dbg(0, "ds_open(socket %d)\n", i);

Expand Down Expand Up @@ -407,6 +408,17 @@ static int ds_open(struct inode *inode, struct file *file)
s->user = user;
file->private_data = user;

if (!warning_printed) {
printk(KERN_INFO "pcmcia: Detected deprecated PCMCIA ioctl "
"usage.\n");
printk(KERN_INFO "pcmcia: This interface will soon be removed from "
"the kernel; please expect breakage unless you upgrade "
"to new tools.\n");
printk(KERN_INFO "pcmcia: see http://www.kernel.org/pub/linux/"
"utils/kernel/pcmcia/pcmcia.html for details.\n");
warning_printed = 1;
}

if (s->pcmcia_state.present)
queue_event(user, CS_EVENT_CARD_INSERTION);
return 0;
Expand Down

0 comments on commit 1be8c81

Please sign in to comment.