Skip to content

Commit c41e413

Browse files
committed
Merge branch 'for-davem' of git://gitorious.org/linux-can/linux-can-next
Marc Kleine-Budde says: ==================== the fifth pull request for upcoming v3.6 net-next. The first two patches (created by me) add const qualifiers to the flexcan and mpc5xxx_can driver. The next patch by Julia Lawall fixes a return value problem in the error path of the softing driver. ==================== Signed-off-by: David S. Miller <[email protected]>
2 parents 7df2dc6 + da78b79 commit c41e413

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

drivers/net/can/flexcan.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -192,7 +192,7 @@ struct flexcan_priv {
192192

193193
struct clk *clk;
194194
struct flexcan_platform_data *pdata;
195-
struct flexcan_devtype_data *devtype_data;
195+
const struct flexcan_devtype_data *devtype_data;
196196
};
197197

198198
static struct flexcan_devtype_data fsl_p1010_devtype_data = {
@@ -960,7 +960,7 @@ static const struct platform_device_id flexcan_id_table[] = {
960960
static int __devinit flexcan_probe(struct platform_device *pdev)
961961
{
962962
const struct of_device_id *of_id;
963-
struct flexcan_devtype_data *devtype_data;
963+
const struct flexcan_devtype_data *devtype_data;
964964
struct net_device *dev;
965965
struct flexcan_priv *priv;
966966
struct resource *mem;

drivers/net/can/mscan/mpc5xxx_can.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -251,7 +251,7 @@ static struct of_device_id mpc5xxx_can_table[];
251251
static int __devinit mpc5xxx_can_probe(struct platform_device *ofdev)
252252
{
253253
const struct of_device_id *match;
254-
struct mpc5xxx_can_data *data;
254+
const struct mpc5xxx_can_data *data;
255255
struct device_node *np = ofdev->dev.of_node;
256256
struct net_device *dev;
257257
struct mscan_priv *priv;

drivers/net/can/softing/softing_main.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -826,12 +826,12 @@ static __devinit int softing_pdev_probe(struct platform_device *pdev)
826826
goto sysfs_failed;
827827
}
828828

829-
ret = -ENOMEM;
830829
for (j = 0; j < ARRAY_SIZE(card->net); ++j) {
831830
card->net[j] = netdev =
832831
softing_netdev_create(card, card->id.chip[j]);
833832
if (!netdev) {
834833
dev_alert(&pdev->dev, "failed to make can[%i]", j);
834+
ret = -ENOMEM;
835835
goto netdev_failed;
836836
}
837837
priv = netdev_priv(card->net[j]);

0 commit comments

Comments
 (0)