projects
/
deliverable
/
linux.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
WorkStruct: make allyesconfig
[deliverable/linux.git]
/
drivers
/
char
/
synclinkmp.c
diff --git
a/drivers/char/synclinkmp.c
b/drivers/char/synclinkmp.c
index 3e932b68137118286959ecbd39f3df7de41eeaa2..13a57245cf2ec112e1b6442f8b3d1e1e43fec828 100644
(file)
--- a/
drivers/char/synclinkmp.c
+++ b/
drivers/char/synclinkmp.c
@@
-602,7
+602,7
@@
static void enable_loopback(SLMP_INFO *info, int enable);
static void set_rate(SLMP_INFO *info, u32 data_rate);
static int bh_action(SLMP_INFO *info);
static void set_rate(SLMP_INFO *info, u32 data_rate);
static int bh_action(SLMP_INFO *info);
-static void bh_handler(
void* Context
);
+static void bh_handler(
struct work_struct *work
);
static void bh_receive(SLMP_INFO *info);
static void bh_transmit(SLMP_INFO *info);
static void bh_status(SLMP_INFO *info);
static void bh_receive(SLMP_INFO *info);
static void bh_transmit(SLMP_INFO *info);
static void bh_status(SLMP_INFO *info);
@@
-2063,9
+2063,9
@@
int bh_action(SLMP_INFO *info)
/* Perform bottom half processing of work items queued by ISR.
*/
/* Perform bottom half processing of work items queued by ISR.
*/
-void bh_handler(
void* Context
)
+void bh_handler(
struct work_struct *work
)
{
{
- SLMP_INFO *info =
(SLMP_INFO*)Context
;
+ SLMP_INFO *info =
container_of(work, SLMP_INFO, task)
;
int action;
if (!info)
int action;
if (!info)
@@
-3805,7
+3805,7
@@
static SLMP_INFO *alloc_dev(int adapter_num, int port_num, struct pci_dev *pdev)
} else {
memset(info, 0, sizeof(SLMP_INFO));
info->magic = MGSL_MAGIC;
} else {
memset(info, 0, sizeof(SLMP_INFO));
info->magic = MGSL_MAGIC;
- INIT_WORK(&info->task, bh_handler
, info
);
+ INIT_WORK(&info->task, bh_handler);
info->max_frame_size = 4096;
info->close_delay = 5*HZ/10;
info->closing_wait = 30*HZ;
info->max_frame_size = 4096;
info->close_delay = 5*HZ/10;
info->closing_wait = 30*HZ;
This page took
0.024326 seconds
and
5
git commands to generate.