Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 348041
b: refs/heads/master
c: 7712866
h: refs/heads/master
i:
  348039: a1778bf
v: v3
  • Loading branch information
Maxime Ripard committed Dec 23, 2012
1 parent 0577711 commit ae5203c
Show file tree
Hide file tree
Showing 93 changed files with 444 additions and 433 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: ecccd1248d6e6986130ffcc3b0d003cb46a485c0
refs/heads/master: 7712866ff69e9de287cd4fbb3f06c3202020e143
1 change: 1 addition & 0 deletions trunk/arch/arm/configs/multi_v7_defconfig
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ CONFIG_MACH_ARMADA_370=y
CONFIG_MACH_ARMADA_XP=y
CONFIG_ARCH_HIGHBANK=y
CONFIG_ARCH_SOCFPGA=y
CONFIG_ARCH_SUNXI=y
# CONFIG_ARCH_VEXPRESS_CORTEX_A5_A9_ERRATA is not set
CONFIG_ARM_ERRATA_754322=y
CONFIG_SMP=y
Expand Down
2 changes: 1 addition & 1 deletion trunk/drivers/atm/solos-pci.c
Original file line number Diff line number Diff line change
Expand Up @@ -538,7 +538,7 @@ static ssize_t geos_gpio_store(struct device *dev, struct device_attribute *attr
} else {
count = -EINVAL;
}
spin_unlock_irq(&card->param_queue_lock);
spin_lock_irq(&card->param_queue_lock);
return count;
}

Expand Down
2 changes: 1 addition & 1 deletion trunk/drivers/hwmon/emc6w201.c
Original file line number Diff line number Diff line change
Expand Up @@ -187,7 +187,7 @@ static struct emc6w201_data *emc6w201_update_device(struct device *dev)
* Sysfs callback functions
*/

static const s16 nominal_mv[6] = { 2500, 1500, 3300, 5000, 1500, 1500 };
static const u16 nominal_mv[6] = { 2500, 1500, 3300, 5000, 1500, 1500 };

static ssize_t show_in(struct device *dev, struct device_attribute *devattr,
char *buf)
Expand Down
16 changes: 5 additions & 11 deletions trunk/drivers/hwmon/lm73.c
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,6 @@ static ssize_t set_temp(struct device *dev, struct device_attribute *da,
struct i2c_client *client = to_i2c_client(dev);
long temp;
short value;
s32 err;

int status = kstrtol(buf, 10, &temp);
if (status < 0)
Expand All @@ -58,25 +57,20 @@ static ssize_t set_temp(struct device *dev, struct device_attribute *da,
/* Write value */
value = (short) SENSORS_LIMIT(temp/250, (LM73_TEMP_MIN*4),
(LM73_TEMP_MAX*4)) << 5;
err = i2c_smbus_write_word_swapped(client, attr->index, value);
return (err < 0) ? err : count;
i2c_smbus_write_word_swapped(client, attr->index, value);
return count;
}

static ssize_t show_temp(struct device *dev, struct device_attribute *da,
char *buf)
{
struct sensor_device_attribute *attr = to_sensor_dev_attr(da);
struct i2c_client *client = to_i2c_client(dev);
int temp;

s32 err = i2c_smbus_read_word_swapped(client, attr->index);
if (err < 0)
return err;

/* use integer division instead of equivalent right shift to
guarantee arithmetic shift and preserve the sign */
temp = (((s16) err) * 250) / 32;
return scnprintf(buf, PAGE_SIZE, "%d\n", temp);
int temp = ((s16) (i2c_smbus_read_word_swapped(client,
attr->index))*250) / 32;
return sprintf(buf, "%d\n", temp);
}


Expand Down
8 changes: 4 additions & 4 deletions trunk/drivers/i2c/busses/i2c-ali1535.c
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ static unsigned short ali1535_offset;
Note the differences between kernels with the old PCI BIOS interface and
newer kernels with the real PCI interface. In compat.h some things are
defined to make the transition easier. */
static int ali1535_setup(struct pci_dev *dev)
static int __devinit ali1535_setup(struct pci_dev *dev)
{
int retval;
unsigned char temp;
Expand Down Expand Up @@ -502,7 +502,7 @@ static DEFINE_PCI_DEVICE_TABLE(ali1535_ids) = {

MODULE_DEVICE_TABLE(pci, ali1535_ids);

static int ali1535_probe(struct pci_dev *dev, const struct pci_device_id *id)
static int __devinit ali1535_probe(struct pci_dev *dev, const struct pci_device_id *id)
{
if (ali1535_setup(dev)) {
dev_warn(&dev->dev,
Expand All @@ -518,7 +518,7 @@ static int ali1535_probe(struct pci_dev *dev, const struct pci_device_id *id)
return i2c_add_adapter(&ali1535_adapter);
}

static void ali1535_remove(struct pci_dev *dev)
static void __devexit ali1535_remove(struct pci_dev *dev)
{
i2c_del_adapter(&ali1535_adapter);
release_region(ali1535_smba, ALI1535_SMB_IOSIZE);
Expand All @@ -528,7 +528,7 @@ static struct pci_driver ali1535_driver = {
.name = "ali1535_smbus",
.id_table = ali1535_ids,
.probe = ali1535_probe,
.remove = ali1535_remove,
.remove = __devexit_p(ali1535_remove),
};

module_pci_driver(ali1535_driver);
Expand Down
10 changes: 5 additions & 5 deletions trunk/drivers/i2c/busses/i2c-ali1563.c
Original file line number Diff line number Diff line change
Expand Up @@ -326,7 +326,7 @@ static u32 ali1563_func(struct i2c_adapter * a)
}


static int ali1563_setup(struct pci_dev *dev)
static int __devinit ali1563_setup(struct pci_dev * dev)
{
u16 ctrl;

Expand Down Expand Up @@ -390,8 +390,8 @@ static struct i2c_adapter ali1563_adapter = {
.algo = &ali1563_algorithm,
};

static int ali1563_probe(struct pci_dev *dev,
const struct pci_device_id *id_table)
static int __devinit ali1563_probe(struct pci_dev * dev,
const struct pci_device_id * id_table)
{
int error;

Expand All @@ -411,7 +411,7 @@ static int ali1563_probe(struct pci_dev *dev,
return error;
}

static void ali1563_remove(struct pci_dev *dev)
static void __devexit ali1563_remove(struct pci_dev * dev)
{
i2c_del_adapter(&ali1563_adapter);
ali1563_shutdown(dev);
Expand All @@ -428,7 +428,7 @@ static struct pci_driver ali1563_pci_driver = {
.name = "ali1563_smbus",
.id_table = ali1563_id_table,
.probe = ali1563_probe,
.remove = ali1563_remove,
.remove = __devexit_p(ali1563_remove),
};

module_pci_driver(ali1563_pci_driver);
Expand Down
8 changes: 4 additions & 4 deletions trunk/drivers/i2c/busses/i2c-ali15x3.c
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ MODULE_PARM_DESC(force_addr,
static struct pci_driver ali15x3_driver;
static unsigned short ali15x3_smba;

static int ali15x3_setup(struct pci_dev *ALI15X3_dev)
static int __devinit ali15x3_setup(struct pci_dev *ALI15X3_dev)
{
u16 a;
unsigned char temp;
Expand Down Expand Up @@ -484,7 +484,7 @@ static DEFINE_PCI_DEVICE_TABLE(ali15x3_ids) = {

MODULE_DEVICE_TABLE (pci, ali15x3_ids);

static int ali15x3_probe(struct pci_dev *dev, const struct pci_device_id *id)
static int __devinit ali15x3_probe(struct pci_dev *dev, const struct pci_device_id *id)
{
if (ali15x3_setup(dev)) {
dev_err(&dev->dev,
Expand All @@ -500,7 +500,7 @@ static int ali15x3_probe(struct pci_dev *dev, const struct pci_device_id *id)
return i2c_add_adapter(&ali15x3_adapter);
}

static void ali15x3_remove(struct pci_dev *dev)
static void __devexit ali15x3_remove(struct pci_dev *dev)
{
i2c_del_adapter(&ali15x3_adapter);
release_region(ali15x3_smba, ALI15X3_SMB_IOSIZE);
Expand All @@ -510,7 +510,7 @@ static struct pci_driver ali15x3_driver = {
.name = "ali15x3_smbus",
.id_table = ali15x3_ids,
.probe = ali15x3_probe,
.remove = ali15x3_remove,
.remove = __devexit_p(ali15x3_remove),
};

module_pci_driver(ali15x3_driver);
Expand Down
7 changes: 4 additions & 3 deletions trunk/drivers/i2c/busses/i2c-amd756.c
Original file line number Diff line number Diff line change
Expand Up @@ -324,7 +324,8 @@ static DEFINE_PCI_DEVICE_TABLE(amd756_ids) = {

MODULE_DEVICE_TABLE (pci, amd756_ids);

static int amd756_probe(struct pci_dev *pdev, const struct pci_device_id *id)
static int __devinit amd756_probe(struct pci_dev *pdev,
const struct pci_device_id *id)
{
int nforce = (id->driver_data == NFORCE);
int error;
Expand Down Expand Up @@ -396,7 +397,7 @@ static int amd756_probe(struct pci_dev *pdev, const struct pci_device_id *id)
return error;
}

static void amd756_remove(struct pci_dev *dev)
static void __devexit amd756_remove(struct pci_dev *dev)
{
i2c_del_adapter(&amd756_smbus);
release_region(amd756_ioport, SMB_IOSIZE);
Expand All @@ -406,7 +407,7 @@ static struct pci_driver amd756_driver = {
.name = "amd756_smbus",
.id_table = amd756_ids,
.probe = amd756_probe,
.remove = amd756_remove,
.remove = __devexit_p(amd756_remove),
};

module_pci_driver(amd756_driver);
Expand Down
7 changes: 4 additions & 3 deletions trunk/drivers/i2c/busses/i2c-amd8111.c
Original file line number Diff line number Diff line change
Expand Up @@ -422,7 +422,8 @@ static DEFINE_PCI_DEVICE_TABLE(amd8111_ids) = {

MODULE_DEVICE_TABLE (pci, amd8111_ids);

static int amd8111_probe(struct pci_dev *dev, const struct pci_device_id *id)
static int __devinit amd8111_probe(struct pci_dev *dev,
const struct pci_device_id *id)
{
struct amd_smbus *smbus;
int error;
Expand Down Expand Up @@ -474,7 +475,7 @@ static int amd8111_probe(struct pci_dev *dev, const struct pci_device_id *id)
return error;
}

static void amd8111_remove(struct pci_dev *dev)
static void __devexit amd8111_remove(struct pci_dev *dev)
{
struct amd_smbus *smbus = pci_get_drvdata(dev);

Expand All @@ -487,7 +488,7 @@ static struct pci_driver amd8111_driver = {
.name = "amd8111_smbus2",
.id_table = amd8111_ids,
.probe = amd8111_probe,
.remove = amd8111_remove,
.remove = __devexit_p(amd8111_remove),
};

module_pci_driver(amd8111_driver);
14 changes: 7 additions & 7 deletions trunk/drivers/i2c/busses/i2c-at91.c
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@ static void at91_init_twi_bus(struct at91_twi_dev *dev)
* Calculate symmetric clock as stated in datasheet:
* twi_clk = F_MAIN / (2 * (cdiv * (1 << ckdiv) + offset))
*/
static void at91_calc_twi_clock(struct at91_twi_dev *dev, int twi_clk)
static void __devinit at91_calc_twi_clock(struct at91_twi_dev *dev, int twi_clk)
{
int ckdiv, cdiv, div;
struct at91_twi_pdata *pdata = dev->pdata;
Expand Down Expand Up @@ -604,7 +604,7 @@ MODULE_DEVICE_TABLE(of, atmel_twi_dt_ids);
#define atmel_twi_dt_ids NULL
#endif

static bool filter(struct dma_chan *chan, void *slave)
static bool __devinit filter(struct dma_chan *chan, void *slave)
{
struct at_dma_slave *sl = slave;

Expand All @@ -616,7 +616,7 @@ static bool filter(struct dma_chan *chan, void *slave)
}
}

static int at91_twi_configure_dma(struct at91_twi_dev *dev, u32 phy_addr)
static int __devinit at91_twi_configure_dma(struct at91_twi_dev *dev, u32 phy_addr)
{
int ret = 0;
struct at_dma_slave *sdata;
Expand Down Expand Up @@ -688,7 +688,7 @@ static int at91_twi_configure_dma(struct at91_twi_dev *dev, u32 phy_addr)
return ret;
}

static struct at91_twi_pdata *at91_twi_get_driver_data(
static struct at91_twi_pdata * __devinit at91_twi_get_driver_data(
struct platform_device *pdev)
{
if (pdev->dev.of_node) {
Expand All @@ -701,7 +701,7 @@ static struct at91_twi_pdata *at91_twi_get_driver_data(
return (struct at91_twi_pdata *) platform_get_device_id(pdev)->driver_data;
}

static int at91_twi_probe(struct platform_device *pdev)
static int __devinit at91_twi_probe(struct platform_device *pdev)
{
struct at91_twi_dev *dev;
struct resource *mem;
Expand Down Expand Up @@ -779,7 +779,7 @@ static int at91_twi_probe(struct platform_device *pdev)
return 0;
}

static int at91_twi_remove(struct platform_device *pdev)
static int __devexit at91_twi_remove(struct platform_device *pdev)
{
struct at91_twi_dev *dev = platform_get_drvdata(pdev);
int rc;
Expand Down Expand Up @@ -820,7 +820,7 @@ static const struct dev_pm_ops at91_twi_pm = {

static struct platform_driver at91_twi_driver = {
.probe = at91_twi_probe,
.remove = at91_twi_remove,
.remove = __devexit_p(at91_twi_remove),
.id_table = at91_twi_devtypes,
.driver = {
.name = "at91_i2c",
Expand Down
6 changes: 3 additions & 3 deletions trunk/drivers/i2c/busses/i2c-au1550.c
Original file line number Diff line number Diff line change
Expand Up @@ -313,7 +313,7 @@ static void i2c_au1550_disable(struct i2c_au1550_data *priv)
* Prior to calling us, the 50MHz clock frequency and routing
* must have been set up for the PSC indicated by the adapter.
*/
static int
static int __devinit
i2c_au1550_probe(struct platform_device *pdev)
{
struct i2c_au1550_data *priv;
Expand Down Expand Up @@ -372,7 +372,7 @@ i2c_au1550_probe(struct platform_device *pdev)
return ret;
}

static int i2c_au1550_remove(struct platform_device *pdev)
static int __devexit i2c_au1550_remove(struct platform_device *pdev)
{
struct i2c_au1550_data *priv = platform_get_drvdata(pdev);

Expand Down Expand Up @@ -423,7 +423,7 @@ static struct platform_driver au1xpsc_smbus_driver = {
.pm = AU1XPSC_SMBUS_PMOPS,
},
.probe = i2c_au1550_probe,
.remove = i2c_au1550_remove,
.remove = __devexit_p(i2c_au1550_remove),
};

module_platform_driver(au1xpsc_smbus_driver);
Expand Down
8 changes: 4 additions & 4 deletions trunk/drivers/i2c/busses/i2c-cpm.c
Original file line number Diff line number Diff line change
Expand Up @@ -426,7 +426,7 @@ static const struct i2c_adapter cpm_ops = {
.algo = &cpm_i2c_algo,
};

static int cpm_i2c_setup(struct cpm_i2c *cpm)
static int __devinit cpm_i2c_setup(struct cpm_i2c *cpm)
{
struct platform_device *ofdev = cpm->ofdev;
const u32 *data;
Expand Down Expand Up @@ -634,7 +634,7 @@ static void cpm_i2c_shutdown(struct cpm_i2c *cpm)
cpm_muram_free(cpm->i2c_addr);
}

static int cpm_i2c_probe(struct platform_device *ofdev)
static int __devinit cpm_i2c_probe(struct platform_device *ofdev)
{
int result, len;
struct cpm_i2c *cpm;
Expand Down Expand Up @@ -688,7 +688,7 @@ static int cpm_i2c_probe(struct platform_device *ofdev)
return result;
}

static int cpm_i2c_remove(struct platform_device *ofdev)
static int __devexit cpm_i2c_remove(struct platform_device *ofdev)
{
struct cpm_i2c *cpm = dev_get_drvdata(&ofdev->dev);

Expand Down Expand Up @@ -716,7 +716,7 @@ MODULE_DEVICE_TABLE(of, cpm_i2c_match);

static struct platform_driver cpm_i2c_driver = {
.probe = cpm_i2c_probe,
.remove = cpm_i2c_remove,
.remove = __devexit_p(cpm_i2c_remove),
.driver = {
.name = "fsl-i2c-cpm",
.owner = THIS_MODULE,
Expand Down
6 changes: 3 additions & 3 deletions trunk/drivers/i2c/busses/i2c-designware-pcidrv.c
Original file line number Diff line number Diff line change
Expand Up @@ -207,7 +207,7 @@ static u32 i2c_dw_get_clk_rate_khz(struct dw_i2c_dev *dev)
return dev->controller->clk_khz;
}

static int i2c_dw_pci_probe(struct pci_dev *pdev,
static int __devinit i2c_dw_pci_probe(struct pci_dev *pdev,
const struct pci_device_id *id)
{
struct dw_i2c_dev *dev;
Expand Down Expand Up @@ -328,7 +328,7 @@ const struct pci_device_id *id)
return r;
}

static void i2c_dw_pci_remove(struct pci_dev *pdev)
static void __devexit i2c_dw_pci_remove(struct pci_dev *pdev)
{
struct dw_i2c_dev *dev = pci_get_drvdata(pdev);

Expand Down Expand Up @@ -368,7 +368,7 @@ static struct pci_driver dw_i2c_driver = {
.name = DRIVER_NAME,
.id_table = i2_designware_pci_ids,
.probe = i2c_dw_pci_probe,
.remove = i2c_dw_pci_remove,
.remove = __devexit_p(i2c_dw_pci_remove),
.driver = {
.pm = &i2c_dw_pm_ops,
},
Expand Down
Loading

0 comments on commit ae5203c

Please sign in to comment.