Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
S
Simple PCIe FMC carrier SPEC
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
50
Issues
50
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Wiki
Wiki
image/svg+xml
Discourse
Discourse
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Projects
Simple PCIe FMC carrier SPEC
Commits
e7558452
Commit
e7558452
authored
Apr 01, 2019
by
Federico Vaga
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
drv:compat: use kallsyms to get private fpga_mgr_class
Signed-off-by:
Federico Vaga
<
federico.vaga@cern.ch
>
parent
7bfb5a5e
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
2 deletions
+3
-2
spec-compat.c
kernel/spec-compat.c
+3
-1
spec-irq.c
kernel/spec-irq.c
+0
-1
No files found.
kernel/spec-compat.c
View file @
e7558452
...
...
@@ -3,6 +3,7 @@
* Copyright (C) 2017 CERN (www.cern.ch)
* Author: Federico Vaga <federico.vaga@cern.ch>
*/
#include <linux/kallsyms.h>
#include <linux/module.h>
#include <linux/fpga/fpga-mgr.h>
#include <linux/version.h>
...
...
@@ -138,8 +139,9 @@ static int fpga_mgr_dev_match(struct device *dev, const void *data)
*
* Return: fpga manager struct or IS_ERR() condition containing error code.
*/
st
atic
st
ruct
fpga_manager
*
fpga_mgr_get
(
struct
device
*
dev
)
struct
fpga_manager
*
fpga_mgr_get
(
struct
device
*
dev
)
{
void
*
fpga_mgr_class
=
(
void
*
)
kallsyms_lookup_name
(
"fpga_mgr_class"
);
struct
device
*
mgr_dev
=
class_find_device
(
fpga_mgr_class
,
NULL
,
dev
,
fpga_mgr_dev_match
);
if
(
!
mgr_dev
)
...
...
kernel/spec-irq.c
View file @
e7558452
...
...
@@ -6,7 +6,6 @@
*
* Driver for SPEC (Simple PCI FMC carrier) board.
*/
#include <linux/irq.h>
#include <linux/irqdomain.h>
#include <linux/interrupt.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