mfd-lee-3.12-2
These are the final patches due for the v3.12 merge window. -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.12 (GNU/Linux) iQIcBAABAgAGBQJSJFptAAoJEFGvii+H/Hdh19AP/iZmJv6KycO9fOgIFvhPK6pK B0P2dRQGBfQcWOpPCvTIHDur0wY68uwVAUJnb+F1pOQANB/dHLhuecMnamrlLmYF KFjGPEKLAgN51N/dV5luMO+8SnBb1u9GFmwl4/qNKNqfFRTJx2mpi9ZuImLbiwP/ 45s9Jg5RTR2u8sRTutOHTbfXrO4EgP7QTFn4sJ3FPcQDSfF8Afie9punRXC6YeGh 5RZvIqFVCDCZhhGAikNg0C/yo4g8flRijnoOxmQGLt6hxqK/X7VpD2wwCI/R4IPo CXvNHxDkabCTQCrsj0DYtDtKjvj1fe0nr8twlw2jOh03ilAf/S+E9VEQb28WbSrg zT8HxoBrCC2PeZQNvTcT7j9tXY4ZLQjCJPUej912f3uC1+RlRY4zVPDQWb/wCAYj cYbU7RKPcKF2b/pQpHDzHTFo8aA5ejoxXuvNsBnQSWBuCKqS94F2fbdAAR5+n/I/ FDI5YEV1QEhGqS6ju6USuHE7hI5Oz3qikhTEsNgsQunBv3P7AsDrgmivHBj5yCj1 fdcVUlylCwl8aUjOrvRdbiSWT1Nj9I+8kWxcbVpe57aBd+FkBxPl0CcHaC8LfKt2 yxixDPD7rIjV/vpKQ0HekHpqCdf5mMVy61jEgUFHqVeJ/in83+91eT4Jf4NIPNPS fXcGMN8FSLxADT6zKDIM =Tku1 -----END PGP SIGNATURE----- Merge tag 'mfd-lee-3.12-2' of git://git.linaro.org/people/ljones/mfd 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>
This commit is contained in:
commit
9c31e88408
|
@ -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,
|
||||
|
@ -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,
|
||||
|
@ -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[]) {
|
||||
|
@ -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;
|
||||
|
@ -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;
|
||||
|
|
|
@ -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),
|
||||
|
@ -2319,7 +2319,7 @@ unlock_and_return:
|
|||
/**
|
||||
* 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;
|
||||
|
||||
|
|
|
@ -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);
|
||||
|
||||
/*-------------------------------------------------------------------------*/
|
||||
|
|
|
@ -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
|
||||
};
|
||||
|
||||
|
@ -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) {
|
||||
|
@ -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);
|
||||
|
|
|
@ -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;
|
||||
if (!dev)
|
||||
return -ENOMEM;
|
||||
|
||||
ret = drv->add(dev);
|
||||
dev->ucb = ucb;
|
||||
dev->drv = drv;
|
||||
|
||||
if (ret == 0) {
|
||||
list_add_tail(&dev->dev_node, &ucb->devs);
|
||||
list_add_tail(&dev->drv_node, &drv->devs);
|
||||
} else {
|
||||
kfree(dev);
|
||||
}
|
||||
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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue