Skip to content

Commit

Permalink
Merge tag 'mfd-lee-3.12-2' of git://git.linaro.org/people/ljones/mfd
Browse files Browse the repository at this point in the history
mfd-lee-3.12-2

These are the final patches due for the v3.12 merge window.

Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>
  • Loading branch information
Samuel Ortiz committed Sep 2, 2013
2 parents 2b274fe + 02a0bf6 commit 9c31e88
Show file tree
Hide file tree
Showing 5 changed files with 31 additions and 51 deletions.
14 changes: 10 additions & 4 deletions drivers/mfd/ab8500-debugfs.c
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,7 @@ static struct hwreg_cfg hwreg_cfg = {

static struct ab8500_prcmu_ranges *debug_ranges;

struct ab8500_prcmu_ranges ab8500_debug_ranges[AB8500_NUM_BANKS] = {
static struct ab8500_prcmu_ranges ab8500_debug_ranges[AB8500_NUM_BANKS] = {
[0x0] = {
.num_ranges = 0,
.range = NULL,
Expand Down Expand Up @@ -488,7 +488,7 @@ struct ab8500_prcmu_ranges ab8500_debug_ranges[AB8500_NUM_BANKS] = {
},
};

struct ab8500_prcmu_ranges ab8505_debug_ranges[AB8500_NUM_BANKS] = {
static struct ab8500_prcmu_ranges ab8505_debug_ranges[AB8500_NUM_BANKS] = {
[0x0] = {
.num_ranges = 0,
.range = NULL,
Expand Down Expand Up @@ -847,7 +847,7 @@ struct ab8500_prcmu_ranges ab8505_debug_ranges[AB8500_NUM_BANKS] = {
},
};

struct ab8500_prcmu_ranges ab8540_debug_ranges[AB8500_NUM_BANKS] = {
static struct ab8500_prcmu_ranges ab8540_debug_ranges[AB8500_NUM_BANKS] = {
[AB8500_M_FSM_RANK] = {
.num_ranges = 1,
.range = (struct ab8500_reg_range[]) {
Expand Down Expand Up @@ -1377,7 +1377,7 @@ void ab8500_dump_all_banks(struct device *dev)

/* Space for 500 registers. */
#define DUMP_MAX_REGS 700
struct ab8500_register_dump
static struct ab8500_register_dump
{
u8 bank;
u8 reg;
Expand Down Expand Up @@ -2800,7 +2800,13 @@ static ssize_t ab8500_subscribe_write(struct file *file,
*/
dev_attr[irq_index] = kmalloc(sizeof(struct device_attribute),
GFP_KERNEL);
if (!dev_attr[irq_index])
return -ENOMEM;

event_name[irq_index] = kmalloc(count, GFP_KERNEL);
if (!event_name[irq_index])
return -ENOMEM;

sprintf(event_name[irq_index], "%lu", user_val);
dev_attr[irq_index]->show = show_irq;
dev_attr[irq_index]->store = NULL;
Expand Down
4 changes: 2 additions & 2 deletions drivers/mfd/db8500-prcmu.c
Original file line number Diff line number Diff line change
Expand Up @@ -465,7 +465,7 @@ static DEFINE_SPINLOCK(clk_mgt_lock);

#define CLK_MGT_ENTRY(_name, _branch, _clk38div)[PRCMU_##_name] = \
{ (PRCM_##_name##_MGT), 0 , _branch, _clk38div}
struct clk_mgt clk_mgt[PRCMU_NUM_REG_CLOCKS] = {
static struct clk_mgt clk_mgt[PRCMU_NUM_REG_CLOCKS] = {
CLK_MGT_ENTRY(SGACLK, PLL_DIV, false),
CLK_MGT_ENTRY(UARTCLK, PLL_FIX, true),
CLK_MGT_ENTRY(MSP02CLK, PLL_FIX, true),
Expand Down Expand Up @@ -2319,7 +2319,7 @@ int prcmu_ac_wake_req(void)
/**
* prcmu_ac_sleep_req - called when ARM no longer needs to talk to modem
*/
void prcmu_ac_sleep_req()
void prcmu_ac_sleep_req(void)
{
u32 val;

Expand Down
2 changes: 1 addition & 1 deletion drivers/mfd/omap-usb-host.c
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ struct usbhs_hcd_omap {
};
/*-------------------------------------------------------------------------*/

const char usbhs_driver_name[] = USBHS_DRIVER_NAME;
static const char usbhs_driver_name[] = USBHS_DRIVER_NAME;
static u64 usbhs_dmamask = DMA_BIT_MASK(32);

/*-------------------------------------------------------------------------*/
Expand Down
34 changes: 3 additions & 31 deletions drivers/mfd/timberdale.c
Original file line number Diff line number Diff line change
Expand Up @@ -115,11 +115,11 @@ static const struct resource timberdale_ocores_resources[] = {
},
};

const struct max7301_platform_data timberdale_max7301_platform_data = {
static const struct max7301_platform_data timberdale_max7301_platform_data = {
.base = 200
};

const struct mc33880_platform_data timberdale_mc33880_platform_data = {
static const struct mc33880_platform_data timberdale_mc33880_platform_data = {
.base = 100
};

Expand Down Expand Up @@ -781,7 +781,6 @@ static int timb_probe(struct pci_dev *dev,
priv->fw.major, priv->fw.minor, ip_setup);
err = -ENODEV;
goto err_mfd;
break;
}

if (err) {
Expand Down Expand Up @@ -869,34 +868,7 @@ static struct pci_driver timberdale_pci_driver = {
.remove = timb_remove,
};

static int __init timberdale_init(void)
{
int err;

err = pci_register_driver(&timberdale_pci_driver);
if (err < 0) {
printk(KERN_ERR
"Failed to register PCI driver for %s device.\n",
timberdale_pci_driver.name);
return -ENODEV;
}

printk(KERN_INFO "Driver for %s has been successfully registered.\n",
timberdale_pci_driver.name);

return 0;
}

static void __exit timberdale_exit(void)
{
pci_unregister_driver(&timberdale_pci_driver);

printk(KERN_INFO "Driver for %s has been successfully unregistered.\n",
timberdale_pci_driver.name);
}

module_init(timberdale_init);
module_exit(timberdale_exit);
module_pci_driver(timberdale_pci_driver);

MODULE_AUTHOR("Mocean Laboratories <info@mocean-labs.com>");
MODULE_VERSION(DRV_VERSION);
Expand Down
28 changes: 15 additions & 13 deletions drivers/mfd/ucb1x00-core.c
Original file line number Diff line number Diff line change
Expand Up @@ -393,22 +393,24 @@ static struct irq_chip ucb1x00_irqchip = {
static int ucb1x00_add_dev(struct ucb1x00 *ucb, struct ucb1x00_driver *drv)
{
struct ucb1x00_dev *dev;
int ret = -ENOMEM;
int ret;

dev = kmalloc(sizeof(struct ucb1x00_dev), GFP_KERNEL);
if (dev) {
dev->ucb = ucb;
dev->drv = drv;

ret = drv->add(dev);

if (ret == 0) {
list_add_tail(&dev->dev_node, &ucb->devs);
list_add_tail(&dev->drv_node, &drv->devs);
} else {
kfree(dev);
}
if (!dev)
return -ENOMEM;

dev->ucb = ucb;
dev->drv = drv;

ret = drv->add(dev);
if (ret) {
kfree(dev);
return ret;
}

list_add_tail(&dev->dev_node, &ucb->devs);
list_add_tail(&dev->drv_node, &drv->devs);

return ret;
}

Expand Down

0 comments on commit 9c31e88

Please sign in to comment.