You've already forked linux-apfs
mirror of
https://github.com/linux-apfs/linux-apfs.git
synced 2026-05-01 15:00:59 -07:00
Merge tag 'char-misc-3.14-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/char-misc
Pull char/misc driver patches from Greg KH: "Here's the big char/misc driver patches for 3.14-rc1. Lots of little things, and a new "big" driver, genwqe. Full details are in the shortlog" * tag 'char-misc-3.14-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/char-misc: (90 commits) mei: limit the number of consecutive resets mei: revamp mei reset state machine drivers/char: don't use module_init in non-modular ttyprintk.c VMCI: fix error handling path when registering guest driver extcon: gpio: Add power resume support Documentation: HOWTO: Updates on subsystem trees, patchwork, -next (vs. -mm) in ko_KR Documentation: HOWTO: update for 2.6.x -> 3.x versioning in ko_KR Documentation: HOWTO: update stable address in ko_KR Documentation: HOWTO: update LXR web link in ko_KR char: nwbutton: open-code interruptible_sleep_on mei: fix syntax in comments and debug output mei: nfc: mei_nfc_free has to be called under lock mei: use hbm idle state to prevent spurious resets mei: do not run reset flow from the interrupt thread misc: genwqe: fix return value check in genwqe_device_create() GenWQE: Fix warnings for sparc GenWQE: Fix compile problems for Alpha Documentation/misc-devices/mei/mei-amt-version.c: remove unneeded call of mei_deinit() GenWQE: Rework return code for flash-update ioctl sgi-xp: open-code interruptible_sleep_on_timeout ...
This commit is contained in:
@@ -735,7 +735,7 @@ static struct pci_device_id agp_amd64_pci_table[] = {
|
||||
|
||||
MODULE_DEVICE_TABLE(pci, agp_amd64_pci_table);
|
||||
|
||||
static DEFINE_PCI_DEVICE_TABLE(agp_amd64_pci_promisc_table) = {
|
||||
static const struct pci_device_id agp_amd64_pci_promisc_table[] = {
|
||||
{ PCI_DEVICE_CLASS(0, 0) },
|
||||
{ }
|
||||
};
|
||||
|
||||
+200
-158
File diff suppressed because it is too large
Load Diff
@@ -587,6 +587,8 @@ static int lp_do_ioctl(unsigned int minor, unsigned int cmd,
|
||||
return -ENODEV;
|
||||
switch ( cmd ) {
|
||||
case LPTIME:
|
||||
if (arg > UINT_MAX / HZ)
|
||||
return -EINVAL;
|
||||
LP_TIME(minor) = arg * HZ/100;
|
||||
break;
|
||||
case LPCHAR:
|
||||
|
||||
@@ -168,7 +168,10 @@ static irqreturn_t button_handler (int irq, void *dev_id)
|
||||
static int button_read (struct file *filp, char __user *buffer,
|
||||
size_t count, loff_t *ppos)
|
||||
{
|
||||
interruptible_sleep_on (&button_wait_queue);
|
||||
DEFINE_WAIT(wait);
|
||||
prepare_to_wait(&button_wait_queue, &wait, TASK_INTERRUPTIBLE);
|
||||
schedule();
|
||||
finish_wait(&button_wait_queue, &wait);
|
||||
return (copy_to_user (buffer, &button_output_buffer, bcount))
|
||||
? -EFAULT : bcount;
|
||||
}
|
||||
|
||||
@@ -216,4 +216,4 @@ error:
|
||||
ttyprintk_driver = NULL;
|
||||
return ret;
|
||||
}
|
||||
module_init(ttyprintk_init);
|
||||
device_initcall(ttyprintk_init);
|
||||
|
||||
Reference in New Issue
Block a user