Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 104224
b: refs/heads/master
c: 305e342
h: refs/heads/master
v: v3
  • Loading branch information
Helge Deller authored and Dmitry Torokhov committed Jul 19, 2008
1 parent a3b5d74 commit a79ab8f
Show file tree
Hide file tree
Showing 2 changed files with 10 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: f3d1eb19abdcb1e740d8ba0e06d606c1d4165438
refs/heads/master: 305e342bba16730a0821131af6d7d0df43bfff4c
9 changes: 9 additions & 0 deletions trunk/drivers/input/serio/hp_sdc.c
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,10 @@ EXPORT_SYMBOL(__hp_sdc_enqueue_transaction);
EXPORT_SYMBOL(hp_sdc_enqueue_transaction);
EXPORT_SYMBOL(hp_sdc_dequeue_transaction);

static unsigned int hp_sdc_disabled;
module_param_named(no_hpsdc, hp_sdc_disabled, bool, 0);
MODULE_PARM_DESC(no_hpsdc, "Do not enable HP SDC driver.");

static hp_i8042_sdc hp_sdc; /* All driver state is kept in here. */

/*************** primitives for use in any context *********************/
Expand Down Expand Up @@ -980,6 +984,11 @@ static int __init hp_sdc_register(void)
unsigned char i;
#endif

if (hp_sdc_disabled) {
printk(KERN_WARNING PREFIX "HP SDC driver disabled by no_hpsdc=1.\n");
return -ENODEV;
}

hp_sdc.dev = NULL;
hp_sdc.dev_err = 0;
#if defined(__hppa__)
Expand Down

0 comments on commit a79ab8f

Please sign in to comment.