Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
O
odroid-linux-3.10.y-rt
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
oai
odroid-linux-3.10.y-rt
Commits
9e2b8def
Commit
9e2b8def
authored
Jul 13, 2015
by
Mauro Ribeiro
Committed by
Gerrit Code Review
Jul 13, 2015
Browse files
Options
Browse Files
Download
Plain Diff
Merge "ODROIDXU3: driver kernel panic fix.(modprobe/modprobe -r)" into odroidxu3-3.10.y
parents
ee1b0014
14f5bab1
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
5 deletions
+2
-5
drivers/hardkernel/ina231-misc.c
drivers/hardkernel/ina231-misc.c
+2
-5
No files found.
drivers/hardkernel/ina231-misc.c
View file @
9e2b8def
...
...
@@ -116,7 +116,7 @@ int ina231_misc_probe(struct ina231_sensor *sensor)
struct
miscdevice
*
pmisc
;
struct
global_sensor
*
gsensor
;
if
(
!
(
pmisc
=
kzalloc
(
sizeof
(
struct
miscdevice
),
GFP_KERNEL
)))
{
if
(
!
(
pmisc
=
devm_kzalloc
(
&
sensor
->
client
->
dev
,
sizeof
(
struct
miscdevice
),
GFP_KERNEL
)))
{
printk
(
"INA231 Sensor misc struct malloc error!
\n
"
);
return
-
ENOMEM
;
}
...
...
@@ -132,7 +132,7 @@ int ina231_misc_probe(struct ina231_sensor *sensor)
printk
(
"%s : INA231 misc register fail!
\n
"
,
__func__
);
return
rc
;
}
if
(
!
(
gsensor
=
(
struct
global_sensor
*
)
kmalloc
(
sizeof
(
struct
global_sensor
),
GFP_KERNEL
)))
{
if
(
!
(
gsensor
=
(
struct
global_sensor
*
)
devm_kzalloc
(
&
sensor
->
client
->
dev
,
sizeof
(
struct
global_sensor
),
GFP_KERNEL
)))
{
printk
(
"%s : INA231 global sensor malloc error!
\n
"
,
__func__
);
}
else
{
...
...
@@ -155,10 +155,7 @@ void ina231_misc_remove(struct device *dev)
list_for_each
(
list_head
,
&
SensorList
)
{
gsensor
=
list_entry
(
list_head
,
struct
global_sensor
,
list
);
kfree
(
gsensor
);
}
kfree
(
sensor
->
misc
);
}
//[*]--------------------------------------------------------------------------------------------------[*]
...
...
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