Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 3753
b: refs/heads/master
c: e94e15f
h: refs/heads/master
i:
  3751: ecbe41f
v: v3
  • Loading branch information
Dominik Brodowski authored and Linus Torvalds committed Jun 28, 2005
1 parent bab02b8 commit 9e5000f
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 12 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: daa9517d9eccc3598b2b0cdfa0b016ae4a4fcdce
refs/heads/master: e94e15f70559962f60915a09d44658b73a453fe2
10 changes: 5 additions & 5 deletions trunk/drivers/pcmcia/ds.c
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ MODULE_DESCRIPTION("PCMCIA Driver Services");
MODULE_LICENSE("GPL");

#ifdef DEBUG
int ds_pc_debug;
static int ds_pc_debug;

module_param_named(pc_debug, ds_pc_debug, int, 0644);

Expand Down Expand Up @@ -108,6 +108,8 @@ struct pcmcia_bus_socket {
};
static spinlock_t pcmcia_dev_list_lock;

static struct bus_type pcmcia_bus_type;

#define DS_SOCKET_PRESENT 0x01
#define DS_SOCKET_BUSY 0x02
#define DS_SOCKET_REMOVAL_PENDING 0x10
Expand Down Expand Up @@ -218,7 +220,7 @@ static const lookup_t service_table[] = {
};


int pcmcia_report_error(client_handle_t handle, error_info_t *err)
static int pcmcia_report_error(client_handle_t handle, error_info_t *err)
{
int i;
char *serv;
Expand Down Expand Up @@ -248,7 +250,6 @@ int pcmcia_report_error(client_handle_t handle, error_info_t *err)

return CS_SUCCESS;
} /* report_error */
EXPORT_SYMBOL(pcmcia_report_error);

/* end of code which was in cs.c before */

Expand Down Expand Up @@ -1901,13 +1902,12 @@ static struct class_interface pcmcia_bus_interface = {
};


struct bus_type pcmcia_bus_type = {
static struct bus_type pcmcia_bus_type = {
.name = "pcmcia",
.hotplug = pcmcia_bus_hotplug,
.match = pcmcia_bus_match,
.dev_attrs = pcmcia_dev_attrs,
};
EXPORT_SYMBOL(pcmcia_bus_type);


static int __init init_pcmcia_bus(void)
Expand Down
6 changes: 3 additions & 3 deletions trunk/drivers/pcmcia/rsrc_nonstatic.c
Original file line number Diff line number Diff line change
Expand Up @@ -601,7 +601,7 @@ static int nonstatic_adjust_io_region(struct resource *res, unsigned long r_star
======================================================================*/

struct resource *nonstatic_find_io_region(unsigned long base, int num,
static struct resource *nonstatic_find_io_region(unsigned long base, int num,
unsigned long align, struct pcmcia_socket *s)
{
struct resource *res = make_resource(0, num, IORESOURCE_IO, s->dev.class_id);
Expand Down Expand Up @@ -635,8 +635,8 @@ struct resource *nonstatic_find_io_region(unsigned long base, int num,
return res;
}

struct resource * nonstatic_find_mem_region(u_long base, u_long num, u_long align,
int low, struct pcmcia_socket *s)
static struct resource * nonstatic_find_mem_region(u_long base, u_long num,
u_long align, int low, struct pcmcia_socket *s)
{
struct resource *res = make_resource(0, num, IORESOURCE_MEM, s->dev.class_id);
struct socket_data *s_data = s->resource_data;
Expand Down
1 change: 0 additions & 1 deletion trunk/include/pcmcia/cs.h
Original file line number Diff line number Diff line change
Expand Up @@ -417,7 +417,6 @@ int pcmcia_suspend_card(struct pcmcia_socket *skt);
int pcmcia_resume_card(struct pcmcia_socket *skt);
int pcmcia_eject_card(struct pcmcia_socket *skt);
int pcmcia_insert_card(struct pcmcia_socket *skt);
int pcmcia_report_error(client_handle_t handle, error_info_t *err);

struct pcmcia_socket * pcmcia_get_socket(struct pcmcia_socket *skt);
void pcmcia_put_socket(struct pcmcia_socket *skt);
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 @@ -131,8 +131,6 @@ typedef struct dev_link_t {

struct pcmcia_socket;

extern struct bus_type pcmcia_bus_type;

struct pcmcia_driver {
dev_link_t *(*attach)(void);
void (*detach)(dev_link_t *);
Expand Down

0 comments on commit 9e5000f

Please sign in to comment.