Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
openeuler
raspberrypi-kernel
提交
06b0a9a4
R
raspberrypi-kernel
项目概览
openeuler
/
raspberrypi-kernel
通知
13
Star
1
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
R
raspberrypi-kernel
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
提交
06b0a9a4
编写于
9月 30, 2013
作者:
D
David S. Miller
浏览文件
操作
浏览文件
下载
差异文件
Merge branch 'for-davem' of
git://gitorious.org/linux-can/linux-can-next
Signed-off-by:
N
David S. Miller
<
davem@davemloft.net
>
上级
fbadadd9
a0c7d833
变更
20
隐藏空白更改
内联
并排
Showing
20 changed file
with
146 addition
and
18 deletion
+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
未找到文件。
drivers/net/can/at91_can.c
浏览文件 @
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
浏览文件 @
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
浏览文件 @
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
浏览文件 @
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
浏览文件 @
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
浏览文件 @
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
浏览文件 @
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
浏览文件 @
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
浏览文件 @
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
浏览文件 @
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
浏览文件 @
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
浏览文件 @
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
浏览文件 @
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
浏览文件 @
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
浏览文件 @
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
浏览文件 @
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
浏览文件 @
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
浏览文件 @
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
浏览文件 @
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
浏览文件 @
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
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录