Commit fa6c8ee6 authored by Kai Germaschewski's avatar Kai Germaschewski

drivers/block/paride: Export symbols explicitly

Before this changed we relied on the fact that due to missing
EXPORT_SYMBOL() all symbols would be exported.
parent e66d5915
......@@ -7,7 +7,7 @@
L_TARGET := paride.a
export-objs := bpck6.o
export-objs := paride.o bpck6.o
obj-$(CONFIG_PARIDE) += paride.o
obj-$(CONFIG_PARIDE_PD) += pd.o
......
......@@ -51,21 +51,29 @@ void pi_write_regr( PIA *pi, int cont, int regr, int val)
{ pi->proto->write_regr(pi,cont,regr,val);
}
EXPORT_SYMBOL(pi_write_regr);
int pi_read_regr( PIA *pi, int cont, int regr)
{ return pi->proto->read_regr(pi,cont,regr);
}
EXPORT_SYMBOL(pi_read_regr);
void pi_write_block( PIA *pi, char * buf, int count)
{ pi->proto->write_block(pi,buf,count);
}
EXPORT_SYMBOL(pi_write_block);
void pi_read_block( PIA *pi, char * buf, int count)
{ pi->proto->read_block(pi,buf,count);
}
EXPORT_SYMBOL(pi_read_block);
#ifdef CONFIG_PARPORT
static void pi_wake_up( void *p)
......@@ -116,6 +124,8 @@ void pi_do_claimed( PIA *pi, void(*cont)(void))
#endif
EXPORT_SYMBOL(pi_do_claimed);
static void pi_claim( PIA *pi)
{ if (pi->claimed) return;
......@@ -141,12 +151,16 @@ void pi_connect( PIA *pi)
pi->proto->connect(pi);
}
EXPORT_SYMBOL(pi_connect);
void pi_disconnect( PIA *pi)
{ pi->proto->disconnect(pi);
pi_unclaim(pi);
}
EXPORT_SYMBOL(pi_disconnect);
static void pi_unregister_parport( PIA *pi)
{
......@@ -168,6 +182,8 @@ void pi_release( PIA *pi)
pi->proto->release_proto(pi);
}
EXPORT_SYMBOL(pi_release);
#define WR(r,v) pi_write_regr(pi,0,r,v)
#define RR(r) (pi_read_regr(pi,0,r))
......@@ -226,6 +242,8 @@ int pi_register( PIP *pr)
return 1;
}
EXPORT_SYMBOL(pi_register);
void pi_unregister( PIP *pr)
{ if (!pr) return;
......@@ -237,6 +255,8 @@ void pi_unregister( PIP *pr)
MOD_DEC_USE_COUNT;
}
EXPORT_SYMBOL(pi_unregister);
static int pi_register_parport( PIA *pi, int verbose)
{
......@@ -416,6 +436,8 @@ int pi_init(PIA *pi, int autoprobe, int port, int mode,
return 1;
}
EXPORT_SYMBOL(pi_init);
#ifdef MODULE
int init_module(void)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment