Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
linux
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
linux
Commits
06b0a9a4
Commit
06b0a9a4
authored
Sep 30, 2013
by
David S. Miller
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'for-davem' of
git://gitorious.org/linux-can/linux-can-next
Signed-off-by:
David S. Miller
<
davem@davemloft.net
>
parents
fbadadd9
a0c7d833
Changes
20
Hide whitespace changes
Inline
Side-by-side
Showing
20 changed files
with
146 additions
and
18 deletions
+146
-18
drivers/net/can/at91_can.c
drivers/net/can/at91_can.c
+1
-1
drivers/net/can/bfin_can.c
drivers/net/can/bfin_can.c
+1
-1
drivers/net/can/c_can/c_can_pci.c
drivers/net/can/c_can/c_can_pci.c
+0
-2
drivers/net/can/cc770/cc770_platform.c
drivers/net/can/cc770/cc770_platform.c
+2
-2
drivers/net/can/flexcan.c
drivers/net/can/flexcan.c
+1
-1
drivers/net/can/janz-ican3.c
drivers/net/can/janz-ican3.c
+1
-1
drivers/net/can/mcp251x.c
drivers/net/can/mcp251x.c
+1
-1
drivers/net/can/pch_can.c
drivers/net/can/pch_can.c
+0
-1
drivers/net/can/sja1000/ems_pci.c
drivers/net/can/sja1000/ems_pci.c
+0
-1
drivers/net/can/sja1000/kvaser_pci.c
drivers/net/can/sja1000/kvaser_pci.c
+0
-1
drivers/net/can/sja1000/peak_pci.c
drivers/net/can/sja1000/peak_pci.c
+0
-2
drivers/net/can/sja1000/plx_pci.c
drivers/net/can/sja1000/plx_pci.c
+0
-1
drivers/net/can/sja1000/sja1000_platform.c
drivers/net/can/sja1000/sja1000_platform.c
+1
-1
drivers/net/can/softing/softing_main.c
drivers/net/can/softing/softing_main.c
+1
-1
drivers/net/can/ti_hecc.c
drivers/net/can/ti_hecc.c
+1
-1
include/uapi/linux/can/bcm.h
include/uapi/linux/can/bcm.h
+32
-0
include/uapi/linux/can/error.h
include/uapi/linux/can/error.h
+32
-0
include/uapi/linux/can/gw.h
include/uapi/linux/can/gw.h
+32
-0
include/uapi/linux/can/netlink.h
include/uapi/linux/can/netlink.h
+8
-0
include/uapi/linux/can/raw.h
include/uapi/linux/can/raw.h
+32
-0
No files found.
drivers/net/can/at91_can.c
View file @
06b0a9a4
...
...
@@ -1347,7 +1347,7 @@ static int at91_can_probe(struct platform_device *pdev)
priv
->
reg_base
=
addr
;
priv
->
devtype_data
=
*
devtype_data
;
priv
->
clk
=
clk
;
priv
->
pdata
=
pdev
->
dev
.
platform_data
;
priv
->
pdata
=
dev_get_platdata
(
&
pdev
->
dev
)
;
priv
->
mb0_id
=
0x7ff
;
netif_napi_add
(
dev
,
&
priv
->
napi
,
at91_poll
,
get_mb_rx_num
(
priv
));
...
...
drivers/net/can/bfin_can.c
View file @
06b0a9a4
...
...
@@ -539,7 +539,7 @@ static int bfin_can_probe(struct platform_device *pdev)
struct
resource
*
res_mem
,
*
rx_irq
,
*
tx_irq
,
*
err_irq
;
unsigned
short
*
pdata
;
pdata
=
pdev
->
dev
.
platform_data
;
pdata
=
dev_get_platdata
(
&
pdev
->
dev
)
;
if
(
!
pdata
)
{
dev_err
(
&
pdev
->
dev
,
"No platform data provided!
\n
"
);
err
=
-
EINVAL
;
...
...
drivers/net/can/c_can/c_can_pci.c
View file @
06b0a9a4
...
...
@@ -160,7 +160,6 @@ static int c_can_pci_probe(struct pci_dev *pdev,
return
0
;
out_free_c_can:
pci_set_drvdata
(
pdev
,
NULL
);
free_c_can_dev
(
dev
);
out_iounmap:
pci_iounmap
(
pdev
,
addr
);
...
...
@@ -181,7 +180,6 @@ static void c_can_pci_remove(struct pci_dev *pdev)
unregister_c_can_dev
(
dev
);
pci_set_drvdata
(
pdev
,
NULL
);
free_c_can_dev
(
dev
);
pci_iounmap
(
pdev
,
priv
->
base
);
...
...
drivers/net/can/cc770/cc770_platform.c
View file @
06b0a9a4
...
...
@@ -152,7 +152,7 @@ static int cc770_get_platform_data(struct platform_device *pdev,
struct
cc770_priv
*
priv
)
{
struct
cc770_platform_data
*
pdata
=
pdev
->
dev
.
platform_data
;
struct
cc770_platform_data
*
pdata
=
dev_get_platdata
(
&
pdev
->
dev
)
;
priv
->
can
.
clock
.
freq
=
pdata
->
osc_freq
;
if
(
priv
->
cpu_interface
&
CPUIF_DSC
)
...
...
@@ -203,7 +203,7 @@ static int cc770_platform_probe(struct platform_device *pdev)
if
(
pdev
->
dev
.
of_node
)
err
=
cc770_get_of_node_data
(
pdev
,
priv
);
else
if
(
pdev
->
dev
.
platform_data
)
else
if
(
dev_get_platdata
(
&
pdev
->
dev
)
)
err
=
cc770_get_platform_data
(
pdev
,
priv
);
else
err
=
-
ENODEV
;
...
...
drivers/net/can/flexcan.c
View file @
06b0a9a4
...
...
@@ -1074,7 +1074,7 @@ static int flexcan_probe(struct platform_device *pdev)
priv
->
dev
=
dev
;
priv
->
clk_ipg
=
clk_ipg
;
priv
->
clk_per
=
clk_per
;
priv
->
pdata
=
pdev
->
dev
.
platform_data
;
priv
->
pdata
=
dev_get_platdata
(
&
pdev
->
dev
)
;
priv
->
devtype_data
=
devtype_data
;
priv
->
reg_xceiver
=
devm_regulator_get
(
&
pdev
->
dev
,
"xceiver"
);
...
...
drivers/net/can/janz-ican3.c
View file @
06b0a9a4
...
...
@@ -1769,7 +1769,7 @@ static int ican3_probe(struct platform_device *pdev)
struct
device
*
dev
;
int
ret
;
pdata
=
pdev
->
dev
.
platform_data
;
pdata
=
dev_get_platdata
(
&
pdev
->
dev
)
;
if
(
!
pdata
)
return
-
ENXIO
;
...
...
drivers/net/can/mcp251x.c
View file @
06b0a9a4
...
...
@@ -999,7 +999,7 @@ static int mcp251x_can_probe(struct spi_device *spi)
{
struct
net_device
*
net
;
struct
mcp251x_priv
*
priv
;
struct
mcp251x_platform_data
*
pdata
=
spi
->
dev
.
platform_data
;
struct
mcp251x_platform_data
*
pdata
=
dev_get_platdata
(
&
spi
->
dev
)
;
int
ret
=
-
ENODEV
;
if
(
!
pdata
)
...
...
drivers/net/can/pch_can.c
View file @
06b0a9a4
...
...
@@ -964,7 +964,6 @@ static void pch_can_remove(struct pci_dev *pdev)
pci_disable_msi
(
priv
->
dev
);
pci_release_regions
(
pdev
);
pci_disable_device
(
pdev
);
pci_set_drvdata
(
pdev
,
NULL
);
pch_can_reset
(
priv
);
pci_iounmap
(
pdev
,
priv
->
regs
);
free_candev
(
priv
->
ndev
);
...
...
drivers/net/can/sja1000/ems_pci.c
View file @
06b0a9a4
...
...
@@ -207,7 +207,6 @@ static void ems_pci_del_card(struct pci_dev *pdev)
kfree
(
card
);
pci_disable_device
(
pdev
);
pci_set_drvdata
(
pdev
,
NULL
);
}
static
void
ems_pci_card_reset
(
struct
ems_pci_card
*
card
)
...
...
drivers/net/can/sja1000/kvaser_pci.c
View file @
06b0a9a4
...
...
@@ -387,7 +387,6 @@ static void kvaser_pci_remove_one(struct pci_dev *pdev)
pci_release_regions
(
pdev
);
pci_disable_device
(
pdev
);
pci_set_drvdata
(
pdev
,
NULL
);
}
static
struct
pci_driver
kvaser_pci_driver
=
{
...
...
drivers/net/can/sja1000/peak_pci.c
View file @
06b0a9a4
...
...
@@ -744,8 +744,6 @@ static void peak_pci_remove(struct pci_dev *pdev)
pci_iounmap
(
pdev
,
cfg_base
);
pci_release_regions
(
pdev
);
pci_disable_device
(
pdev
);
pci_set_drvdata
(
pdev
,
NULL
);
}
static
struct
pci_driver
peak_pci_driver
=
{
...
...
drivers/net/can/sja1000/plx_pci.c
View file @
06b0a9a4
...
...
@@ -477,7 +477,6 @@ static void plx_pci_del_card(struct pci_dev *pdev)
kfree
(
card
);
pci_disable_device
(
pdev
);
pci_set_drvdata
(
pdev
,
NULL
);
}
/*
...
...
drivers/net/can/sja1000/sja1000_platform.c
View file @
06b0a9a4
...
...
@@ -76,7 +76,7 @@ static int sp_probe(struct platform_device *pdev)
struct
resource
*
res_mem
,
*
res_irq
;
struct
sja1000_platform_data
*
pdata
;
pdata
=
pdev
->
dev
.
platform_data
;
pdata
=
dev_get_platdata
(
&
pdev
->
dev
)
;
if
(
!
pdata
)
{
dev_err
(
&
pdev
->
dev
,
"No platform data provided!
\n
"
);
err
=
-
ENODEV
;
...
...
drivers/net/can/softing/softing_main.c
View file @
06b0a9a4
...
...
@@ -768,7 +768,7 @@ static int softing_pdev_remove(struct platform_device *pdev)
static
int
softing_pdev_probe
(
struct
platform_device
*
pdev
)
{
const
struct
softing_platform_data
*
pdat
=
pdev
->
dev
.
platform_data
;
const
struct
softing_platform_data
*
pdat
=
dev_get_platdata
(
&
pdev
->
dev
)
;
struct
softing
*
card
;
struct
net_device
*
netdev
;
struct
softing_priv
*
priv
;
...
...
drivers/net/can/ti_hecc.c
View file @
06b0a9a4
...
...
@@ -894,7 +894,7 @@ static int ti_hecc_probe(struct platform_device *pdev)
void
__iomem
*
addr
;
int
err
=
-
ENODEV
;
pdata
=
pdev
->
dev
.
platform_data
;
pdata
=
dev_get_platdata
(
&
pdev
->
dev
)
;
if
(
!
pdata
)
{
dev_err
(
&
pdev
->
dev
,
"No platform data
\n
"
);
goto
probe_exit
;
...
...
include/uapi/linux/can/bcm.h
View file @
06b0a9a4
...
...
@@ -7,6 +7,38 @@
* Copyright (c) 2002-2007 Volkswagen Group Electronic Research
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
* 1. Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
* 2. Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
* 3. Neither the name of Volkswagen nor the names of its contributors
* may be used to endorse or promote products derived from this software
* without specific prior written permission.
*
* Alternatively, provided that this notice is retained in full, this
* software may be distributed under the terms of the GNU General
* Public License ("GPL") version 2, in which case the provisions of the
* GPL apply INSTEAD OF those given above.
*
* The provided data structures and external interfaces from this code
* are not restricted to be used by modules with a GPL compatible license.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
* LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
* A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
* OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
* SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
* LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
* DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
* THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH
* DAMAGE.
*/
#ifndef CAN_BCM_H
...
...
include/uapi/linux/can/error.h
View file @
06b0a9a4
...
...
@@ -7,6 +7,38 @@
* Copyright (c) 2002-2007 Volkswagen Group Electronic Research
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
* 1. Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
* 2. Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
* 3. Neither the name of Volkswagen nor the names of its contributors
* may be used to endorse or promote products derived from this software
* without specific prior written permission.
*
* Alternatively, provided that this notice is retained in full, this
* software may be distributed under the terms of the GNU General
* Public License ("GPL") version 2, in which case the provisions of the
* GPL apply INSTEAD OF those given above.
*
* The provided data structures and external interfaces from this code
* are not restricted to be used by modules with a GPL compatible license.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
* LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
* A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
* OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
* SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
* LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
* DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
* THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH
* DAMAGE.
*/
#ifndef CAN_ERROR_H
...
...
include/uapi/linux/can/gw.h
View file @
06b0a9a4
...
...
@@ -7,6 +7,38 @@
* Copyright (c) 2011 Volkswagen Group Electronic Research
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
* 1. Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
* 2. Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
* 3. Neither the name of Volkswagen nor the names of its contributors
* may be used to endorse or promote products derived from this software
* without specific prior written permission.
*
* Alternatively, provided that this notice is retained in full, this
* software may be distributed under the terms of the GNU General
* Public License ("GPL") version 2, in which case the provisions of the
* GPL apply INSTEAD OF those given above.
*
* The provided data structures and external interfaces from this code
* are not restricted to be used by modules with a GPL compatible license.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
* LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
* A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
* OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
* SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
* LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
* DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
* THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH
* DAMAGE.
*/
#ifndef CAN_GW_H
...
...
include/uapi/linux/can/netlink.h
View file @
06b0a9a4
...
...
@@ -5,6 +5,14 @@
*
* Copyright (c) 2009 Wolfgang Grandegger <wg@grandegger.com>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the version 2 of the GNU General Public License
* as published by the Free Software Foundation
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*/
#ifndef CAN_NETLINK_H
...
...
include/uapi/linux/can/raw.h
View file @
06b0a9a4
...
...
@@ -8,6 +8,38 @@
* Copyright (c) 2002-2007 Volkswagen Group Electronic Research
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
* 1. Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
* 2. Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
* 3. Neither the name of Volkswagen nor the names of its contributors
* may be used to endorse or promote products derived from this software
* without specific prior written permission.
*
* Alternatively, provided that this notice is retained in full, this
* software may be distributed under the terms of the GNU General
* Public License ("GPL") version 2, in which case the provisions of the
* GPL apply INSTEAD OF those given above.
*
* The provided data structures and external interfaces from this code
* are not restricted to be used by modules with a GPL compatible license.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
* LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
* A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
* OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
* SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
* LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
* DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
* THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH
* DAMAGE.
*/
#ifndef CAN_RAW_H
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment