Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 87123
b: refs/heads/master
c: f73d1e6
h: refs/heads/master
i:
  87121: 12097d7
  87119: 06338ca
v: v3
  • Loading branch information
Eugene Teo authored and Rusty Russell committed Mar 10, 2008
1 parent c0f43ab commit 5d11d66
Show file tree
Hide file tree
Showing 53 changed files with 743 additions and 2,499 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: 5c0dea0959356d77d985ecfb2911e7a9e23b95e3
refs/heads/master: f73d1e6ca6985b43a1871467463cba632fbc624d
4 changes: 2 additions & 2 deletions trunk/Documentation/pci.txt
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ initialization with a pointer to a structure describing the driver


The ID table is an array of struct pci_device_id entries ending with an
all-zero entry; use of the macro DEFINE_PCI_DEVICE_TABLE is the preferred
all-zero entry; use of the macro DECLARE_PCI_DEVICE_TABLE is the preferred
method of declaring the table. Each entry consists of:

vendor,device Vendor and device ID to match (or PCI_ANY_ID)
Expand Down Expand Up @@ -193,7 +193,7 @@ Tips on when/where to use the above attributes:
o Do not mark the struct pci_driver.

o The ID table array should be marked __devinitconst; this is done
automatically if the table is declared with DEFINE_PCI_DEVICE_TABLE().
automatically if the table is declared with DECLARE_PCI_DEVICE_TABLE().

o The probe() and remove() functions should be marked __devinit
and __devexit respectively. All initialization functions
Expand Down
2 changes: 1 addition & 1 deletion trunk/Documentation/scheduler/sched-stats.txt
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ of idleness (idle, busy, and newly idle):

/proc/<pid>/schedstat
----------------
schedstats also adds a new /proc/<pid>/schedstat file to include some of
schedstats also adds a new /proc/<pid/schedstat file to include some of
the same information on a per-process level. There are three fields in
this file correlating for that process to:
1) time spent on the cpu
Expand Down
6 changes: 6 additions & 0 deletions trunk/drivers/char/riscom8.c
Original file line number Diff line number Diff line change
Expand Up @@ -1620,8 +1620,14 @@ static int __init rc_init_drivers(void)

static void rc_release_drivers(void)
{
unsigned long flags;

spin_lock_irqsave(&riscom_lock, flags);

tty_unregister_driver(riscom_driver);
put_tty_driver(riscom_driver);

spin_unlock_irqrestore(&riscom_lock, flags);
}

#ifndef MODULE
Expand Down
1 change: 0 additions & 1 deletion trunk/drivers/gpio/pca953x.c
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,6 @@ static void pca953x_setup_gpio(struct pca953x_chip *chip, int gpios)
gc->direction_output = pca953x_gpio_direction_output;
gc->get = pca953x_gpio_get_value;
gc->set = pca953x_gpio_set_value;
gc->can_sleep = 1;

gc->base = chip->gpio_start;
gc->ngpio = gpios;
Expand Down
2 changes: 1 addition & 1 deletion trunk/drivers/input/serio/i8042.h
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@

#if defined(CONFIG_MACH_JAZZ)
#include "i8042-jazzio.h"
#elif defined(CONFIG_SGI_HAS_I8042)
#elif defined(CONFIG_SGI_IP22)
#include "i8042-ip22io.h"
#elif defined(CONFIG_PPC)
#include "i8042-ppcio.h"
Expand Down
15 changes: 8 additions & 7 deletions trunk/drivers/lguest/lguest_user.c
Original file line number Diff line number Diff line change
Expand Up @@ -241,15 +241,16 @@ static ssize_t write(struct file *file, const char __user *in,
cpu = &lg->cpus[cpu_id];
if (!cpu)
return -EINVAL;
}

/* Once the Guest is dead, all you can do is read() why it died. */
if (lg && lg->dead)
return -ENOENT;
/* Once the Guest is dead, you can only read() why it died. */
if (lg->dead)
return -ENOENT;

/* If you're not the task which owns the Guest, you can only break */
if (lg && current != cpu->tsk && req != LHREQ_BREAK)
return -EPERM;
/* If you're not the task which owns the Guest, all you can do
* is break the Launcher out of running the Guest. */
if (current != cpu->tsk && req != LHREQ_BREAK)
return -EPERM;
}

switch (req) {
case LHREQ_INITIALIZE:
Expand Down
4 changes: 1 addition & 3 deletions trunk/drivers/md/bitmap.c
Original file line number Diff line number Diff line change
Expand Up @@ -1045,8 +1045,7 @@ void bitmap_daemon_work(struct bitmap *bitmap)
if (bitmap == NULL)
return;
if (time_before(jiffies, bitmap->daemon_lastrun + bitmap->daemon_sleep*HZ))
goto done;

return;
bitmap->daemon_lastrun = jiffies;
if (bitmap->allclean) {
bitmap->mddev->thread->timeout = MAX_SCHEDULE_TIMEOUT;
Expand Down Expand Up @@ -1143,7 +1142,6 @@ void bitmap_daemon_work(struct bitmap *bitmap)
}
}

done:
if (bitmap->allclean == 0)
bitmap->mddev->thread->timeout = bitmap->daemon_sleep * HZ;
}
Expand Down
2 changes: 1 addition & 1 deletion trunk/drivers/md/md.c
Original file line number Diff line number Diff line change
Expand Up @@ -5149,7 +5149,7 @@ static int md_seq_show(struct seq_file *seq, void *v)
if (mddev->ro==1)
seq_printf(seq, " (read-only)");
if (mddev->ro==2)
seq_printf(seq, " (auto-read-only)");
seq_printf(seq, "(auto-read-only)");
seq_printf(seq, " %s", mddev->pers->name);
}

Expand Down
2 changes: 1 addition & 1 deletion trunk/drivers/memstick/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ menuconfig MEMSTICK
Sony MemoryStick is a proprietary storage/extension card protocol.

If you want MemoryStick support, you should say Y here and also
to the specific driver for your MemoryStick interface.
to the specific driver for your MMC interface.

if MEMSTICK

Expand Down
33 changes: 5 additions & 28 deletions trunk/drivers/memstick/core/memstick.c
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
#include <linux/delay.h>

#define DRIVER_NAME "memstick"
#define DRIVER_VERSION "0.2"

static unsigned int cmd_retries = 3;
module_param(cmd_retries, uint, 0644);
Expand Down Expand Up @@ -235,7 +236,7 @@ int memstick_next_req(struct memstick_host *host, struct memstick_request **mrq)
rc = host->card->next_request(host->card, mrq);

if (!rc)
host->retries = cmd_retries > 1 ? cmd_retries - 1 : 1;
host->retries = cmd_retries;
else
*mrq = NULL;

Expand Down Expand Up @@ -270,7 +271,7 @@ void memstick_init_req_sg(struct memstick_request *mrq, unsigned char tpc,
mrq->data_dir = READ;

mrq->sg = *sg;
mrq->long_data = 1;
mrq->io_type = MEMSTICK_IO_SG;

if (tpc == MS_TPC_SET_CMD || tpc == MS_TPC_EX_SET_CMD)
mrq->need_card_int = 1;
Expand Down Expand Up @@ -305,7 +306,7 @@ void memstick_init_req(struct memstick_request *mrq, unsigned char tpc,
if (mrq->data_dir == WRITE)
memcpy(mrq->data, buf, mrq->data_len);

mrq->long_data = 0;
mrq->io_type = MEMSTICK_IO_VAL;

if (tpc == MS_TPC_SET_CMD || tpc == MS_TPC_EX_SET_CMD)
mrq->need_card_int = 1;
Expand Down Expand Up @@ -560,31 +561,6 @@ void memstick_free_host(struct memstick_host *host)
}
EXPORT_SYMBOL(memstick_free_host);

/**
* memstick_suspend_host - notify bus driver of host suspension
* @host - host to use
*/
void memstick_suspend_host(struct memstick_host *host)
{
mutex_lock(&host->lock);
host->set_param(host, MEMSTICK_POWER, MEMSTICK_POWER_OFF);
mutex_unlock(&host->lock);
}
EXPORT_SYMBOL(memstick_suspend_host);

/**
* memstick_resume_host - notify bus driver of host resumption
* @host - host to use
*/
void memstick_resume_host(struct memstick_host *host)
{
mutex_lock(&host->lock);
host->set_param(host, MEMSTICK_POWER, MEMSTICK_POWER_ON);
mutex_unlock(&host->lock);
memstick_detect_change(host);
}
EXPORT_SYMBOL(memstick_resume_host);

int memstick_register_driver(struct memstick_driver *drv)
{
drv->driver.bus = &memstick_bus_type;
Expand Down Expand Up @@ -635,3 +611,4 @@ module_exit(memstick_exit);
MODULE_AUTHOR("Alex Dubov");
MODULE_LICENSE("GPL");
MODULE_DESCRIPTION("Sony MemoryStick core driver");
MODULE_VERSION(DRIVER_VERSION);
Loading

0 comments on commit 5d11d66

Please sign in to comment.