summaryrefslogtreecommitdiffstats
path: root/drivers/net/can
diff options
context:
space:
mode:
authorMarc Kleine-Budde <mkl@pengutronix.de>2012-07-13 14:52:48 +0200
committerMarc Kleine-Budde <mkl@pengutronix.de>2012-07-17 09:35:58 +0200
commitdda0b3bd1cbb66ee869d589f7d719f703d7c38a1 (patch)
tree810910366af70c93b93d6dff2af600d571951d5b /drivers/net/can
parentgigaset: silence GCC warning for unused 'format_ie' (diff)
downloadlinux-dda0b3bd1cbb66ee869d589f7d719f703d7c38a1.tar.xz
linux-dda0b3bd1cbb66ee869d589f7d719f703d7c38a1.zip
can: flexcan: make flexcan_priv.devtype_data member point to const data
Acked-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de> Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
Diffstat (limited to 'drivers/net/can')
-rw-r--r--drivers/net/can/flexcan.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/net/can/flexcan.c b/drivers/net/can/flexcan.c
index 81324a11a50f..1b6f5621ce89 100644
--- a/drivers/net/can/flexcan.c
+++ b/drivers/net/can/flexcan.c
@@ -192,7 +192,7 @@ struct flexcan_priv {
struct clk *clk;
struct flexcan_platform_data *pdata;
- struct flexcan_devtype_data *devtype_data;
+ const struct flexcan_devtype_data *devtype_data;
};
static struct flexcan_devtype_data fsl_p1010_devtype_data = {
@@ -960,7 +960,7 @@ static const struct platform_device_id flexcan_id_table[] = {
static int __devinit flexcan_probe(struct platform_device *pdev)
{
const struct of_device_id *of_id;
- struct flexcan_devtype_data *devtype_data;
+ const struct flexcan_devtype_data *devtype_data;
struct net_device *dev;
struct flexcan_priv *priv;
struct resource *mem;