Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 4371
b: refs/heads/master
c: a00db1b
h: refs/heads/master
i:
  4369: fe0f0a7
  4367: 9c1b490
v: v3
  • Loading branch information
Pavel Roskin authored and Linus Torvalds committed Jul 8, 2005
1 parent 508a0a4 commit 5698b0c
Show file tree
Hide file tree
Showing 6 changed files with 2 additions and 43 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 2bc5a9bdc56fac6f7cbf95b89443e3809141c247
refs/heads/master: a00db1ba7c33619cbd7c3153e4746d15881c0383
26 changes: 0 additions & 26 deletions trunk/drivers/pcmcia/pcmcia_ioctl.c
Original file line number Diff line number Diff line change
Expand Up @@ -71,29 +71,6 @@ extern int ds_pc_debug;
#define ds_dbg(lvl, fmt, arg...) do { } while (0)
#endif

static const char *release = "Linux Kernel Card Services";

/** pcmcia_get_card_services_info
*
* Return information about this version of Card Services
*/
static int pcmcia_get_card_services_info(servinfo_t *info)
{
unsigned int socket_count = 0;
struct list_head *tmp;
info->Signature[0] = 'C';
info->Signature[1] = 'S';
down_read(&pcmcia_socket_list_rwsem);
list_for_each(tmp, &pcmcia_socket_list)
socket_count++;
up_read(&pcmcia_socket_list_rwsem);
info->Count = socket_count;
info->Revision = CS_RELEASE_CODE;
info->CSLevel = 0x0210;
info->VendorString = (char *)release;
return CS_SUCCESS;
} /* get_card_services_info */


/* backwards-compatible accessing of driver --- by name! */

Expand Down Expand Up @@ -591,9 +568,6 @@ static int ds_ioctl(struct inode * inode, struct file * file,
case DS_ADJUST_RESOURCE_INFO:
ret = pcmcia_adjust_resource_info(&buf->adjust);
break;
case DS_GET_CARD_SERVICES_INFO:
ret = pcmcia_get_card_services_info(&buf->servinfo);
break;
case DS_GET_CONFIGURATION_INFO:
if (buf->config.Function &&
(buf->config.Function >= s->functions))
Expand Down
4 changes: 0 additions & 4 deletions trunk/drivers/scsi/pcmcia/nsp_cs.c
Original file line number Diff line number Diff line change
Expand Up @@ -2155,10 +2155,6 @@ static int __init nsp_cs_init(void)

nsp_msg(KERN_INFO, "loading...");
pcmcia_get_card_services_info(&serv);
if (serv.Revision != CS_RELEASE_CODE) {
nsp_msg(KERN_DEBUG, "Card Services release does not match!");
return -EINVAL;
}
register_pcmcia_driver(&dev_info, &nsp_cs_attach, &nsp_cs_detach);

nsp_dbg(NSP_DEBUG_INIT, "out");
Expand Down
8 changes: 0 additions & 8 deletions trunk/include/pcmcia/cs.h
Original file line number Diff line number Diff line change
Expand Up @@ -68,14 +68,6 @@ typedef struct adjust_t {
#define RES_ALLOCATED 0x20
#define RES_REMOVED 0x40

typedef struct servinfo_t {
char Signature[2];
u_int Count;
u_int Revision;
u_int CSLevel;
char *VendorString;
} servinfo_t;

typedef struct event_callback_args_t {
struct pcmcia_device *client_handle;
void *client_data;
Expand Down
2 changes: 0 additions & 2 deletions trunk/include/pcmcia/ds.h
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,6 @@ typedef struct mtd_info_t {
} mtd_info_t;

typedef union ds_ioctl_arg_t {
servinfo_t servinfo;
adjust_t adjust;
config_info_t config;
tuple_t tuple;
Expand All @@ -65,7 +64,6 @@ typedef union ds_ioctl_arg_t {
cisdump_t cisdump;
} ds_ioctl_arg_t;

#define DS_GET_CARD_SERVICES_INFO _IOR ('d', 1, servinfo_t)
#define DS_ADJUST_RESOURCE_INFO _IOWR('d', 2, adjust_t)
#define DS_GET_CONFIGURATION_INFO _IOWR('d', 3, config_info_t)
#define DS_GET_FIRST_TUPLE _IOWR('d', 4, tuple_t)
Expand Down
3 changes: 1 addition & 2 deletions trunk/include/pcmcia/version.h
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
/* version.h 1.94 2000/10/03 17:55:48 (David Hinds) */

#define CS_RELEASE "3.1.22"
#define CS_RELEASE_CODE 0x3116
/* This file will be removed, please don't include it */

0 comments on commit 5698b0c

Please sign in to comment.