Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 201332
b: refs/heads/master
c: da7ddd3
h: refs/heads/master
v: v3
  • Loading branch information
Latchesar Ionkov authored and Eric Van Hensbergen committed Jul 27, 2010
1 parent d01f877 commit 2c66d70
Show file tree
Hide file tree
Showing 6 changed files with 9 additions and 29 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: 6a99ad4a2e1b1693ffe8e40cc0dddfc633ce2a50
refs/heads/master: da7ddd3296505b4cb46685e1bbf7d0075b3cd4f1
3 changes: 0 additions & 3 deletions trunk/drivers/edac/mpc85xx_edac.c
Original file line number Diff line number Diff line change
Expand Up @@ -336,7 +336,6 @@ static struct of_device_id mpc85xx_pci_err_of_match[] = {
},
{},
};
MODULE_DEVICE_TABLE(of, mpc85xx_pci_err_of_match);

static struct of_platform_driver mpc85xx_pci_err_driver = {
.probe = mpc85xx_pci_err_probe,
Expand Down Expand Up @@ -651,7 +650,6 @@ static struct of_device_id mpc85xx_l2_err_of_match[] = {
{ .compatible = "fsl,p2020-l2-cache-controller", },
{},
};
MODULE_DEVICE_TABLE(of, mpc85xx_l2_err_of_match);

static struct of_platform_driver mpc85xx_l2_err_driver = {
.probe = mpc85xx_l2_err_probe,
Expand Down Expand Up @@ -1128,7 +1126,6 @@ static struct of_device_id mpc85xx_mc_err_of_match[] = {
{ .compatible = "fsl,p2020-memory-controller", },
{},
};
MODULE_DEVICE_TABLE(of, mpc85xx_mc_err_of_match);

static struct of_platform_driver mpc85xx_mc_err_driver = {
.probe = mpc85xx_mc_err_probe,
Expand Down
7 changes: 3 additions & 4 deletions trunk/drivers/gpio/gpiolib.c
Original file line number Diff line number Diff line change
Expand Up @@ -893,12 +893,10 @@ EXPORT_SYMBOL_GPL(gpio_sysfs_set_active_low);
void gpio_unexport(unsigned gpio)
{
struct gpio_desc *desc;
int status = 0;
int status = -EINVAL;

if (!gpio_is_valid(gpio)) {
status = -EINVAL;
if (!gpio_is_valid(gpio))
goto done;
}

mutex_lock(&sysfs_lock);

Expand All @@ -913,6 +911,7 @@ void gpio_unexport(unsigned gpio)
clear_bit(FLAG_EXPORT, &desc->flags);
put_device(dev);
device_unregister(dev);
status = 0;
} else
status = -ENODEV;
}
Expand Down
20 changes: 3 additions & 17 deletions trunk/drivers/rtc/rtc-rx8581.c
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,7 @@ static int rx8581_set_datetime(struct i2c_client *client, struct rtc_time *tm)
return -EIO;
}

err = i2c_smbus_write_byte_data(client, RX8581_REG_CTRL,
err = i2c_smbus_write_byte_data(client, RX8581_REG_FLAG,
(data | RX8581_CTRL_STOP));
if (err < 0) {
dev_err(&client->dev, "Unable to write control register\n");
Expand All @@ -182,29 +182,15 @@ static int rx8581_set_datetime(struct i2c_client *client, struct rtc_time *tm)
return -EIO;
}

/* get VLF and clear it */
data = i2c_smbus_read_byte_data(client, RX8581_REG_FLAG);
if (data < 0) {
dev_err(&client->dev, "Unable to read flag register\n");
return -EIO;
}

err = i2c_smbus_write_byte_data(client, RX8581_REG_FLAG,
(data & ~(RX8581_FLAG_VLF)));
if (err != 0) {
dev_err(&client->dev, "Unable to write flag register\n");
return -EIO;
}

/* Restart the clock */
data = i2c_smbus_read_byte_data(client, RX8581_REG_CTRL);
if (data < 0) {
dev_err(&client->dev, "Unable to read control register\n");
return -EIO;
}

err = i2c_smbus_write_byte_data(client, RX8581_REG_CTRL,
(data & ~(RX8581_CTRL_STOP)));
err = i2c_smbus_write_byte_data(client, RX8581_REG_FLAG,
(data | ~(RX8581_CTRL_STOP)));
if (err != 0) {
dev_err(&client->dev, "Unable to write control register\n");
return -EIO;
Expand Down
2 changes: 1 addition & 1 deletion trunk/fs/9p/vfs_dir.c
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ static int v9fs_dir_readdir(struct file *filp, void *dirent, filldir_t filldir)
while (rdir->head < rdir->tail) {
p9stat_init(&st);
err = p9stat_read(rdir->buf + rdir->head,
buflen - rdir->head, &st,
rdir->tail - rdir->head, &st,
fid->clnt->proto_version);
if (err) {
P9_DPRINTK(P9_DEBUG_VFS, "returned %d\n", err);
Expand Down
4 changes: 1 addition & 3 deletions trunk/kernel/module.c
Original file line number Diff line number Diff line change
Expand Up @@ -787,6 +787,7 @@ SYSCALL_DEFINE2(delete_module, const char __user *, name_user,

/* Store the name of the last unloaded module for diagnostic purposes */
strlcpy(last_unloaded_module, mod->name, sizeof(last_unloaded_module));
ddebug_remove_module(mod->name);

free_module(mod);
return 0;
Expand Down Expand Up @@ -1549,9 +1550,6 @@ static void free_module(struct module *mod)
remove_sect_attrs(mod);
mod_kobject_remove(mod);

/* Remove dynamic debug info */
ddebug_remove_module(mod->name);

/* Arch-specific cleanup. */
module_arch_cleanup(mod);

Expand Down

0 comments on commit 2c66d70

Please sign in to comment.