diff options
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/dma/tegra20-apb-dma.c | 8 | ||||
-rw-r--r-- | drivers/gpio/gpio-mpc8xxx.c | 2 | ||||
-rw-r--r-- | drivers/gpio/gpio-omap.c | 8 | ||||
-rw-r--r-- | drivers/i2c/busses/i2c-mpc.c | 12 | ||||
-rw-r--r-- | drivers/i2c/busses/i2c-omap.c | 3 | ||||
-rw-r--r-- | drivers/macintosh/mediabay.c | 8 | ||||
-rw-r--r-- | drivers/mfd/da9052-i2c.c | 4 | ||||
-rw-r--r-- | drivers/mmc/host/omap_hsmmc.c | 2 | ||||
-rw-r--r-- | drivers/net/can/mscan/mpc5xxx_can.c | 4 | ||||
-rw-r--r-- | drivers/spi/spi-imx.c | 2 | ||||
-rw-r--r-- | drivers/spi/spi-omap2-mcspi.c | 2 | ||||
-rw-r--r-- | drivers/tty/serial/imx.c | 2 | ||||
-rw-r--r-- | drivers/tty/serial/mpc52xx_uart.c | 2 | ||||
-rw-r--r-- | drivers/watchdog/mpc8xxx_wdt.c | 2 |
14 files changed, 31 insertions, 30 deletions
diff --git a/drivers/dma/tegra20-apb-dma.c b/drivers/dma/tegra20-apb-dma.c index 24acd711e032..4708467e4d83 100644 --- a/drivers/dma/tegra20-apb-dma.c +++ b/drivers/dma/tegra20-apb-dma.c | |||
@@ -201,7 +201,7 @@ struct tegra_dma { | |||
201 | struct clk *dma_clk; | 201 | struct clk *dma_clk; |
202 | spinlock_t global_lock; | 202 | spinlock_t global_lock; |
203 | void __iomem *base_addr; | 203 | void __iomem *base_addr; |
204 | struct tegra_dma_chip_data *chip_data; | 204 | const struct tegra_dma_chip_data *chip_data; |
205 | 205 | ||
206 | /* Some register need to be cache before suspend */ | 206 | /* Some register need to be cache before suspend */ |
207 | u32 reg_gen; | 207 | u32 reg_gen; |
@@ -1173,14 +1173,14 @@ static void tegra_dma_free_chan_resources(struct dma_chan *dc) | |||
1173 | } | 1173 | } |
1174 | 1174 | ||
1175 | /* Tegra20 specific DMA controller information */ | 1175 | /* Tegra20 specific DMA controller information */ |
1176 | static struct tegra_dma_chip_data tegra20_dma_chip_data = { | 1176 | static const struct tegra_dma_chip_data tegra20_dma_chip_data = { |
1177 | .nr_channels = 16, | 1177 | .nr_channels = 16, |
1178 | .max_dma_count = 1024UL * 64, | 1178 | .max_dma_count = 1024UL * 64, |
1179 | }; | 1179 | }; |
1180 | 1180 | ||
1181 | #if defined(CONFIG_OF) | 1181 | #if defined(CONFIG_OF) |
1182 | /* Tegra30 specific DMA controller information */ | 1182 | /* Tegra30 specific DMA controller information */ |
1183 | static struct tegra_dma_chip_data tegra30_dma_chip_data = { | 1183 | static const struct tegra_dma_chip_data tegra30_dma_chip_data = { |
1184 | .nr_channels = 32, | 1184 | .nr_channels = 32, |
1185 | .max_dma_count = 1024UL * 64, | 1185 | .max_dma_count = 1024UL * 64, |
1186 | }; | 1186 | }; |
@@ -1204,7 +1204,7 @@ static int __devinit tegra_dma_probe(struct platform_device *pdev) | |||
1204 | struct tegra_dma *tdma; | 1204 | struct tegra_dma *tdma; |
1205 | int ret; | 1205 | int ret; |
1206 | int i; | 1206 | int i; |
1207 | struct tegra_dma_chip_data *cdata = NULL; | 1207 | const struct tegra_dma_chip_data *cdata = NULL; |
1208 | 1208 | ||
1209 | if (pdev->dev.of_node) { | 1209 | if (pdev->dev.of_node) { |
1210 | const struct of_device_id *match; | 1210 | const struct of_device_id *match; |
diff --git a/drivers/gpio/gpio-mpc8xxx.c b/drivers/gpio/gpio-mpc8xxx.c index 5a1817eedd1b..9ae29cc0d17f 100644 --- a/drivers/gpio/gpio-mpc8xxx.c +++ b/drivers/gpio/gpio-mpc8xxx.c | |||
@@ -38,7 +38,7 @@ struct mpc8xxx_gpio_chip { | |||
38 | */ | 38 | */ |
39 | u32 data; | 39 | u32 data; |
40 | struct irq_domain *irq; | 40 | struct irq_domain *irq; |
41 | void *of_dev_id_data; | 41 | const void *of_dev_id_data; |
42 | }; | 42 | }; |
43 | 43 | ||
44 | static inline u32 mpc8xxx_gpio2mask(unsigned int gpio) | 44 | static inline u32 mpc8xxx_gpio2mask(unsigned int gpio) |
diff --git a/drivers/gpio/gpio-omap.c b/drivers/gpio/gpio-omap.c index e6efd77668f0..0725d181581f 100644 --- a/drivers/gpio/gpio-omap.c +++ b/drivers/gpio/gpio-omap.c | |||
@@ -1058,7 +1058,7 @@ static int __devinit omap_gpio_probe(struct platform_device *pdev) | |||
1058 | struct device *dev = &pdev->dev; | 1058 | struct device *dev = &pdev->dev; |
1059 | struct device_node *node = dev->of_node; | 1059 | struct device_node *node = dev->of_node; |
1060 | const struct of_device_id *match; | 1060 | const struct of_device_id *match; |
1061 | struct omap_gpio_platform_data *pdata; | 1061 | const struct omap_gpio_platform_data *pdata; |
1062 | struct resource *res; | 1062 | struct resource *res; |
1063 | struct gpio_bank *bank; | 1063 | struct gpio_bank *bank; |
1064 | int ret = 0; | 1064 | int ret = 0; |
@@ -1440,19 +1440,19 @@ static struct omap_gpio_reg_offs omap4_gpio_regs = { | |||
1440 | .fallingdetect = OMAP4_GPIO_FALLINGDETECT, | 1440 | .fallingdetect = OMAP4_GPIO_FALLINGDETECT, |
1441 | }; | 1441 | }; |
1442 | 1442 | ||
1443 | static struct omap_gpio_platform_data omap2_pdata = { | 1443 | const static struct omap_gpio_platform_data omap2_pdata = { |
1444 | .regs = &omap2_gpio_regs, | 1444 | .regs = &omap2_gpio_regs, |
1445 | .bank_width = 32, | 1445 | .bank_width = 32, |
1446 | .dbck_flag = false, | 1446 | .dbck_flag = false, |
1447 | }; | 1447 | }; |
1448 | 1448 | ||
1449 | static struct omap_gpio_platform_data omap3_pdata = { | 1449 | const static struct omap_gpio_platform_data omap3_pdata = { |
1450 | .regs = &omap2_gpio_regs, | 1450 | .regs = &omap2_gpio_regs, |
1451 | .bank_width = 32, | 1451 | .bank_width = 32, |
1452 | .dbck_flag = true, | 1452 | .dbck_flag = true, |
1453 | }; | 1453 | }; |
1454 | 1454 | ||
1455 | static struct omap_gpio_platform_data omap4_pdata = { | 1455 | const static struct omap_gpio_platform_data omap4_pdata = { |
1456 | .regs = &omap4_gpio_regs, | 1456 | .regs = &omap4_gpio_regs, |
1457 | .bank_width = 32, | 1457 | .bank_width = 32, |
1458 | .dbck_flag = true, | 1458 | .dbck_flag = true, |
diff --git a/drivers/i2c/busses/i2c-mpc.c b/drivers/i2c/busses/i2c-mpc.c index b76731edbf10..57f7703ce2e8 100644 --- a/drivers/i2c/busses/i2c-mpc.c +++ b/drivers/i2c/busses/i2c-mpc.c | |||
@@ -647,7 +647,7 @@ static int __devinit fsl_i2c_probe(struct platform_device *op) | |||
647 | } | 647 | } |
648 | 648 | ||
649 | if (match->data) { | 649 | if (match->data) { |
650 | struct mpc_i2c_data *data = match->data; | 650 | const struct mpc_i2c_data *data = match->data; |
651 | data->setup(op->dev.of_node, i2c, clock, data->prescaler); | 651 | data->setup(op->dev.of_node, i2c, clock, data->prescaler); |
652 | } else { | 652 | } else { |
653 | /* Backwards compatibility */ | 653 | /* Backwards compatibility */ |
@@ -730,24 +730,24 @@ static int mpc_i2c_resume(struct device *dev) | |||
730 | SIMPLE_DEV_PM_OPS(mpc_i2c_pm_ops, mpc_i2c_suspend, mpc_i2c_resume); | 730 | SIMPLE_DEV_PM_OPS(mpc_i2c_pm_ops, mpc_i2c_suspend, mpc_i2c_resume); |
731 | #endif | 731 | #endif |
732 | 732 | ||
733 | static struct mpc_i2c_data mpc_i2c_data_512x __devinitdata = { | 733 | static const struct mpc_i2c_data mpc_i2c_data_512x __devinitdata = { |
734 | .setup = mpc_i2c_setup_512x, | 734 | .setup = mpc_i2c_setup_512x, |
735 | }; | 735 | }; |
736 | 736 | ||
737 | static struct mpc_i2c_data mpc_i2c_data_52xx __devinitdata = { | 737 | static const struct mpc_i2c_data mpc_i2c_data_52xx __devinitdata = { |
738 | .setup = mpc_i2c_setup_52xx, | 738 | .setup = mpc_i2c_setup_52xx, |
739 | }; | 739 | }; |
740 | 740 | ||
741 | static struct mpc_i2c_data mpc_i2c_data_8313 __devinitdata = { | 741 | static const struct mpc_i2c_data mpc_i2c_data_8313 __devinitdata = { |
742 | .setup = mpc_i2c_setup_8xxx, | 742 | .setup = mpc_i2c_setup_8xxx, |
743 | }; | 743 | }; |
744 | 744 | ||
745 | static struct mpc_i2c_data mpc_i2c_data_8543 __devinitdata = { | 745 | static const struct mpc_i2c_data mpc_i2c_data_8543 __devinitdata = { |
746 | .setup = mpc_i2c_setup_8xxx, | 746 | .setup = mpc_i2c_setup_8xxx, |
747 | .prescaler = 2, | 747 | .prescaler = 2, |
748 | }; | 748 | }; |
749 | 749 | ||
750 | static struct mpc_i2c_data mpc_i2c_data_8544 __devinitdata = { | 750 | static const struct mpc_i2c_data mpc_i2c_data_8544 __devinitdata = { |
751 | .setup = mpc_i2c_setup_8xxx, | 751 | .setup = mpc_i2c_setup_8xxx, |
752 | .prescaler = 3, | 752 | .prescaler = 3, |
753 | }; | 753 | }; |
diff --git a/drivers/i2c/busses/i2c-omap.c b/drivers/i2c/busses/i2c-omap.c index 5d19a49803c1..a0e49f6aaf96 100644 --- a/drivers/i2c/busses/i2c-omap.c +++ b/drivers/i2c/busses/i2c-omap.c | |||
@@ -944,7 +944,8 @@ omap_i2c_probe(struct platform_device *pdev) | |||
944 | struct omap_i2c_dev *dev; | 944 | struct omap_i2c_dev *dev; |
945 | struct i2c_adapter *adap; | 945 | struct i2c_adapter *adap; |
946 | struct resource *mem, *irq, *ioarea; | 946 | struct resource *mem, *irq, *ioarea; |
947 | struct omap_i2c_bus_platform_data *pdata = pdev->dev.platform_data; | 947 | const struct omap_i2c_bus_platform_data *pdata = |
948 | pdev->dev.platform_data; | ||
948 | struct device_node *node = pdev->dev.of_node; | 949 | struct device_node *node = pdev->dev.of_node; |
949 | const struct of_device_id *match; | 950 | const struct of_device_id *match; |
950 | irq_handler_t isr; | 951 | irq_handler_t isr; |
diff --git a/drivers/macintosh/mediabay.c b/drivers/macintosh/mediabay.c index 831d7517c759..3f8d032f180f 100644 --- a/drivers/macintosh/mediabay.c +++ b/drivers/macintosh/mediabay.c | |||
@@ -63,7 +63,7 @@ struct media_bay_info { | |||
63 | int value_count; | 63 | int value_count; |
64 | int timer; | 64 | int timer; |
65 | struct macio_dev *mdev; | 65 | struct macio_dev *mdev; |
66 | struct mb_ops* ops; | 66 | const struct mb_ops* ops; |
67 | int index; | 67 | int index; |
68 | int cached_gpio; | 68 | int cached_gpio; |
69 | int sleeping; | 69 | int sleeping; |
@@ -669,7 +669,7 @@ static int media_bay_resume(struct macio_dev *mdev) | |||
669 | 669 | ||
670 | /* Definitions of "ops" structures. | 670 | /* Definitions of "ops" structures. |
671 | */ | 671 | */ |
672 | static struct mb_ops ohare_mb_ops = { | 672 | static const struct mb_ops ohare_mb_ops = { |
673 | .name = "Ohare", | 673 | .name = "Ohare", |
674 | .content = ohare_mb_content, | 674 | .content = ohare_mb_content, |
675 | .power = ohare_mb_power, | 675 | .power = ohare_mb_power, |
@@ -678,7 +678,7 @@ static struct mb_ops ohare_mb_ops = { | |||
678 | .un_reset_ide = ohare_mb_un_reset_ide, | 678 | .un_reset_ide = ohare_mb_un_reset_ide, |
679 | }; | 679 | }; |
680 | 680 | ||
681 | static struct mb_ops heathrow_mb_ops = { | 681 | static const struct mb_ops heathrow_mb_ops = { |
682 | .name = "Heathrow", | 682 | .name = "Heathrow", |
683 | .content = heathrow_mb_content, | 683 | .content = heathrow_mb_content, |
684 | .power = heathrow_mb_power, | 684 | .power = heathrow_mb_power, |
@@ -687,7 +687,7 @@ static struct mb_ops heathrow_mb_ops = { | |||
687 | .un_reset_ide = heathrow_mb_un_reset_ide, | 687 | .un_reset_ide = heathrow_mb_un_reset_ide, |
688 | }; | 688 | }; |
689 | 689 | ||
690 | static struct mb_ops keylargo_mb_ops = { | 690 | static const struct mb_ops keylargo_mb_ops = { |
691 | .name = "KeyLargo", | 691 | .name = "KeyLargo", |
692 | .init = keylargo_mb_init, | 692 | .init = keylargo_mb_init, |
693 | .content = keylargo_mb_content, | 693 | .content = keylargo_mb_content, |
diff --git a/drivers/mfd/da9052-i2c.c b/drivers/mfd/da9052-i2c.c index 82c9d6450286..352c58b5a90d 100644 --- a/drivers/mfd/da9052-i2c.c +++ b/drivers/mfd/da9052-i2c.c | |||
@@ -46,7 +46,7 @@ static int da9052_i2c_enable_multiwrite(struct da9052 *da9052) | |||
46 | return 0; | 46 | return 0; |
47 | } | 47 | } |
48 | 48 | ||
49 | static struct i2c_device_id da9052_i2c_id[] = { | 49 | static const struct i2c_device_id da9052_i2c_id[] = { |
50 | {"da9052", DA9052}, | 50 | {"da9052", DA9052}, |
51 | {"da9053-aa", DA9053_AA}, | 51 | {"da9053-aa", DA9053_AA}, |
52 | {"da9053-ba", DA9053_BA}, | 52 | {"da9053-ba", DA9053_BA}, |
@@ -104,7 +104,7 @@ static int __devinit da9052_i2c_probe(struct i2c_client *client, | |||
104 | const struct of_device_id *deviceid; | 104 | const struct of_device_id *deviceid; |
105 | 105 | ||
106 | deviceid = of_match_node(dialog_dt_ids, np); | 106 | deviceid = of_match_node(dialog_dt_ids, np); |
107 | id = (const struct i2c_device_id *)deviceid->data; | 107 | id = deviceid->data; |
108 | } | 108 | } |
109 | #endif | 109 | #endif |
110 | 110 | ||
diff --git a/drivers/mmc/host/omap_hsmmc.c b/drivers/mmc/host/omap_hsmmc.c index 3a09f93cc3b6..e975d3ecccc7 100644 --- a/drivers/mmc/host/omap_hsmmc.c +++ b/drivers/mmc/host/omap_hsmmc.c | |||
@@ -1782,7 +1782,7 @@ static int __devinit omap_hsmmc_probe(struct platform_device *pdev) | |||
1782 | if (match) { | 1782 | if (match) { |
1783 | pdata = of_get_hsmmc_pdata(&pdev->dev); | 1783 | pdata = of_get_hsmmc_pdata(&pdev->dev); |
1784 | if (match->data) { | 1784 | if (match->data) { |
1785 | u16 *offsetp = match->data; | 1785 | const u16 *offsetp = match->data; |
1786 | pdata->reg_offset = *offsetp; | 1786 | pdata->reg_offset = *offsetp; |
1787 | } | 1787 | } |
1788 | } | 1788 | } |
diff --git a/drivers/net/can/mscan/mpc5xxx_can.c b/drivers/net/can/mscan/mpc5xxx_can.c index 06adf881ea24..8a8df82988d1 100644 --- a/drivers/net/can/mscan/mpc5xxx_can.c +++ b/drivers/net/can/mscan/mpc5xxx_can.c | |||
@@ -380,12 +380,12 @@ static int mpc5xxx_can_resume(struct platform_device *ofdev) | |||
380 | } | 380 | } |
381 | #endif | 381 | #endif |
382 | 382 | ||
383 | static struct mpc5xxx_can_data __devinitdata mpc5200_can_data = { | 383 | static const struct mpc5xxx_can_data __devinitdata mpc5200_can_data = { |
384 | .type = MSCAN_TYPE_MPC5200, | 384 | .type = MSCAN_TYPE_MPC5200, |
385 | .get_clock = mpc52xx_can_get_clock, | 385 | .get_clock = mpc52xx_can_get_clock, |
386 | }; | 386 | }; |
387 | 387 | ||
388 | static struct mpc5xxx_can_data __devinitdata mpc5121_can_data = { | 388 | static const struct mpc5xxx_can_data __devinitdata mpc5121_can_data = { |
389 | .type = MSCAN_TYPE_MPC5121, | 389 | .type = MSCAN_TYPE_MPC5121, |
390 | .get_clock = mpc512x_can_get_clock, | 390 | .get_clock = mpc512x_can_get_clock, |
391 | }; | 391 | }; |
diff --git a/drivers/spi/spi-imx.c b/drivers/spi/spi-imx.c index e834ff8c0188..3bd9c691b796 100644 --- a/drivers/spi/spi-imx.c +++ b/drivers/spi/spi-imx.c | |||
@@ -97,7 +97,7 @@ struct spi_imx_data { | |||
97 | const void *tx_buf; | 97 | const void *tx_buf; |
98 | unsigned int txfifo; /* number of words pushed in tx FIFO */ | 98 | unsigned int txfifo; /* number of words pushed in tx FIFO */ |
99 | 99 | ||
100 | struct spi_imx_devtype_data *devtype_data; | 100 | const struct spi_imx_devtype_data *devtype_data; |
101 | int chipselect[0]; | 101 | int chipselect[0]; |
102 | }; | 102 | }; |
103 | 103 | ||
diff --git a/drivers/spi/spi-omap2-mcspi.c b/drivers/spi/spi-omap2-mcspi.c index b2fb141da375..569714ebffe0 100644 --- a/drivers/spi/spi-omap2-mcspi.c +++ b/drivers/spi/spi-omap2-mcspi.c | |||
@@ -1116,7 +1116,7 @@ MODULE_DEVICE_TABLE(of, omap_mcspi_of_match); | |||
1116 | static int __devinit omap2_mcspi_probe(struct platform_device *pdev) | 1116 | static int __devinit omap2_mcspi_probe(struct platform_device *pdev) |
1117 | { | 1117 | { |
1118 | struct spi_master *master; | 1118 | struct spi_master *master; |
1119 | struct omap2_mcspi_platform_config *pdata; | 1119 | const struct omap2_mcspi_platform_config *pdata; |
1120 | struct omap2_mcspi *mcspi; | 1120 | struct omap2_mcspi *mcspi; |
1121 | struct resource *r; | 1121 | struct resource *r; |
1122 | int status = 0, i; | 1122 | int status = 0, i; |
diff --git a/drivers/tty/serial/imx.c b/drivers/tty/serial/imx.c index d5c689d6217e..20e911724027 100644 --- a/drivers/tty/serial/imx.c +++ b/drivers/tty/serial/imx.c | |||
@@ -206,7 +206,7 @@ struct imx_port { | |||
206 | unsigned short trcv_delay; /* transceiver delay */ | 206 | unsigned short trcv_delay; /* transceiver delay */ |
207 | struct clk *clk_ipg; | 207 | struct clk *clk_ipg; |
208 | struct clk *clk_per; | 208 | struct clk *clk_per; |
209 | struct imx_uart_data *devdata; | 209 | const struct imx_uart_data *devdata; |
210 | }; | 210 | }; |
211 | 211 | ||
212 | struct imx_port_ucrs { | 212 | struct imx_port_ucrs { |
diff --git a/drivers/tty/serial/mpc52xx_uart.c b/drivers/tty/serial/mpc52xx_uart.c index bedac0d4c9ce..b131f2d885d4 100644 --- a/drivers/tty/serial/mpc52xx_uart.c +++ b/drivers/tty/serial/mpc52xx_uart.c | |||
@@ -598,7 +598,7 @@ static struct psc_ops mpc512x_psc_ops = { | |||
598 | }; | 598 | }; |
599 | #endif | 599 | #endif |
600 | 600 | ||
601 | static struct psc_ops *psc_ops; | 601 | static const struct psc_ops *psc_ops; |
602 | 602 | ||
603 | /* ======================================================================== */ | 603 | /* ======================================================================== */ |
604 | /* UART operations */ | 604 | /* UART operations */ |
diff --git a/drivers/watchdog/mpc8xxx_wdt.c b/drivers/watchdog/mpc8xxx_wdt.c index 40f7bf1f8654..e6a038ae8dc2 100644 --- a/drivers/watchdog/mpc8xxx_wdt.c +++ b/drivers/watchdog/mpc8xxx_wdt.c | |||
@@ -193,7 +193,7 @@ static int __devinit mpc8xxx_wdt_probe(struct platform_device *ofdev) | |||
193 | int ret; | 193 | int ret; |
194 | const struct of_device_id *match; | 194 | const struct of_device_id *match; |
195 | struct device_node *np = ofdev->dev.of_node; | 195 | struct device_node *np = ofdev->dev.of_node; |
196 | struct mpc8xxx_wdt_type *wdt_type; | 196 | const struct mpc8xxx_wdt_type *wdt_type; |
197 | u32 freq = fsl_get_sys_freq(); | 197 | u32 freq = fsl_get_sys_freq(); |
198 | bool enabled; | 198 | bool enabled; |
199 | 199 | ||