Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 2007
b: refs/heads/master
c: 90ef713
h: refs/heads/master
i:
  2005: 0402aac
  2003: 952acaa
  1999: f9efb4c
v: v3
  • Loading branch information
Catalin Marinas authored and Russell King committed Jun 16, 2005
1 parent 7e5e773 commit acaee98
Show file tree
Hide file tree
Showing 7 changed files with 14 additions and 8 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: c081474c184b34136e09e1e335f41356a11c7b68
refs/heads/master: 90ef713b6368dcfe7a74bcc0026b998b4c44d5bc
2 changes: 1 addition & 1 deletion trunk/arch/arm/mach-versatile/core.c
Original file line number Diff line number Diff line change
Expand Up @@ -543,7 +543,7 @@ static void versatile_clcd_enable(struct clcd_fb *fb)
val |= SYS_CLCD_MODE_5551;
break;
case 6:
val |= SYS_CLCD_MODE_565_BLSB;
val |= SYS_CLCD_MODE_565_RLSB;
break;
case 8:
val |= SYS_CLCD_MODE_888;
Expand Down
9 changes: 8 additions & 1 deletion trunk/drivers/block/elevator.c
Original file line number Diff line number Diff line change
Expand Up @@ -220,6 +220,11 @@ void elevator_exit(elevator_t *e)
kfree(e);
}

static int elevator_global_init(void)
{
return 0;
}

int elv_merge(request_queue_t *q, struct request **req, struct bio *bio)
{
elevator_t *e = q->elevator;
Expand Down Expand Up @@ -317,7 +322,7 @@ void __elv_add_request(request_queue_t *q, struct request *rq, int where,
int nrq = q->rq.count[READ] + q->rq.count[WRITE]
- q->in_flight;

if (nrq >= q->unplug_thresh)
if (nrq == q->unplug_thresh)
__generic_unplug_device(q);
}
} else
Expand Down Expand Up @@ -687,6 +692,8 @@ ssize_t elv_iosched_show(request_queue_t *q, char *name)
return len;
}

module_init(elevator_global_init);

EXPORT_SYMBOL(elv_add_request);
EXPORT_SYMBOL(__elv_add_request);
EXPORT_SYMBOL(elv_requeue_request);
Expand Down
3 changes: 1 addition & 2 deletions trunk/drivers/ieee1394/sbp2.c
Original file line number Diff line number Diff line change
Expand Up @@ -745,8 +745,7 @@ static struct scsi_id_instance_data *sbp2_alloc_device(struct unit_directory *ud
list_add_tail(&scsi_id->scsi_list, &hi->scsi_ids);

/* Register our host with the SCSI stack. */
scsi_host = scsi_host_alloc(&scsi_driver_template,
sizeof (unsigned long));
scsi_host = scsi_host_alloc(&scsi_driver_template, 0);
if (!scsi_host) {
SBP2_ERR("failed to register scsi host");
goto failed_alloc;
Expand Down
2 changes: 1 addition & 1 deletion trunk/drivers/input/mouse/alps.c
Original file line number Diff line number Diff line change
Expand Up @@ -352,7 +352,7 @@ static int alps_reconnect(struct psmouse *psmouse)
if (alps_get_status(psmouse, param))
return -1;

if (!(param[0] & 0x04))
if (param[0] & 0x04)
alps_tap_mode(psmouse, 1);

if (alps_absolute_mode(psmouse)) {
Expand Down
2 changes: 1 addition & 1 deletion trunk/drivers/usb/net/kaweth.c
Original file line number Diff line number Diff line change
Expand Up @@ -520,7 +520,7 @@ static void int_callback(struct urb *u, struct pt_regs *regs)

/* we check the link state to report changes */
if (kaweth->linkstate != (act_state = ( kaweth->intbuffer[STATE_OFFSET] | STATE_MASK) >> STATE_SHIFT)) {
if (act_state)
if (!act_state)
netif_carrier_on(kaweth->net);
else
netif_carrier_off(kaweth->net);
Expand Down
2 changes: 1 addition & 1 deletion trunk/fs/binfmt_elf.c
Original file line number Diff line number Diff line change
Expand Up @@ -1125,7 +1125,7 @@ static int dump_write(struct file *file, const void *addr, int nr)
return file->f_op->write(file, addr, nr, &file->f_pos) == nr;
}

static int dump_seek(struct file *file, loff_t off)
static int dump_seek(struct file *file, off_t off)
{
if (file->f_op->llseek) {
if (file->f_op->llseek(file, off, 0) != off)
Expand Down

0 comments on commit acaee98

Please sign in to comment.