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
Kirill Smelkov
linux
Commits
cabb33dd
Commit
cabb33dd
authored
Jan 18, 2021
by
Chen-Yu Tsai
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'mfd/ib-mfd-bus-5.12' into sunxi/drivers-for-5.12
parents
4a0dbc12
3c15e00e
Changes
6
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
11 additions
and
9 deletions
+11
-9
drivers/bus/sunxi-rsb.c
drivers/bus/sunxi-rsb.c
+3
-1
drivers/mfd/axp20x-i2c.c
drivers/mfd/axp20x-i2c.c
+3
-1
drivers/mfd/axp20x-rsb.c
drivers/mfd/axp20x-rsb.c
+2
-2
drivers/mfd/axp20x.c
drivers/mfd/axp20x.c
+1
-3
include/linux/mfd/axp20x.h
include/linux/mfd/axp20x.h
+1
-1
include/linux/sunxi-rsb.h
include/linux/sunxi-rsb.h
+1
-1
No files found.
drivers/bus/sunxi-rsb.c
View file @
cabb33dd
...
...
@@ -173,7 +173,9 @@ static int sunxi_rsb_device_remove(struct device *dev)
{
const
struct
sunxi_rsb_driver
*
drv
=
to_sunxi_rsb_driver
(
dev
->
driver
);
return
drv
->
remove
(
to_sunxi_rsb_device
(
dev
));
drv
->
remove
(
to_sunxi_rsb_device
(
dev
));
return
0
;
}
static
struct
bus_type
sunxi_rsb_bus
=
{
...
...
drivers/mfd/axp20x-i2c.c
View file @
cabb33dd
...
...
@@ -54,7 +54,9 @@ static int axp20x_i2c_remove(struct i2c_client *i2c)
{
struct
axp20x_dev
*
axp20x
=
i2c_get_clientdata
(
i2c
);
return
axp20x_device_remove
(
axp20x
);
axp20x_device_remove
(
axp20x
);
return
0
;
}
#ifdef CONFIG_OF
...
...
drivers/mfd/axp20x-rsb.c
View file @
cabb33dd
...
...
@@ -49,11 +49,11 @@ static int axp20x_rsb_probe(struct sunxi_rsb_device *rdev)
return
axp20x_device_probe
(
axp20x
);
}
static
int
axp20x_rsb_remove
(
struct
sunxi_rsb_device
*
rdev
)
static
void
axp20x_rsb_remove
(
struct
sunxi_rsb_device
*
rdev
)
{
struct
axp20x_dev
*
axp20x
=
sunxi_rsb_device_get_drvdata
(
rdev
);
return
axp20x_device_remove
(
axp20x
);
axp20x_device_remove
(
axp20x
);
}
static
const
struct
of_device_id
axp20x_rsb_of_match
[]
=
{
...
...
drivers/mfd/axp20x.c
View file @
cabb33dd
...
...
@@ -987,7 +987,7 @@ int axp20x_device_probe(struct axp20x_dev *axp20x)
}
EXPORT_SYMBOL
(
axp20x_device_probe
);
int
axp20x_device_remove
(
struct
axp20x_dev
*
axp20x
)
void
axp20x_device_remove
(
struct
axp20x_dev
*
axp20x
)
{
if
(
axp20x
==
axp20x_pm_power_off
)
{
axp20x_pm_power_off
=
NULL
;
...
...
@@ -996,8 +996,6 @@ int axp20x_device_remove(struct axp20x_dev *axp20x)
mfd_remove_devices
(
axp20x
->
dev
);
regmap_del_irq_chip
(
axp20x
->
irq
,
axp20x
->
regmap_irqc
);
return
0
;
}
EXPORT_SYMBOL
(
axp20x_device_remove
);
...
...
include/linux/mfd/axp20x.h
View file @
cabb33dd
...
...
@@ -696,6 +696,6 @@ int axp20x_device_probe(struct axp20x_dev *axp20x);
*
* This tells the axp20x core to remove the associated mfd devices
*/
int
axp20x_device_remove
(
struct
axp20x_dev
*
axp20x
);
void
axp20x_device_remove
(
struct
axp20x_dev
*
axp20x
);
#endif
/* __LINUX_MFD_AXP20X_H */
include/linux/sunxi-rsb.h
View file @
cabb33dd
...
...
@@ -59,7 +59,7 @@ static inline void sunxi_rsb_device_set_drvdata(struct sunxi_rsb_device *rdev,
struct
sunxi_rsb_driver
{
struct
device_driver
driver
;
int
(
*
probe
)(
struct
sunxi_rsb_device
*
rdev
);
int
(
*
remove
)(
struct
sunxi_rsb_device
*
rdev
);
void
(
*
remove
)(
struct
sunxi_rsb_device
*
rdev
);
};
static
inline
struct
sunxi_rsb_driver
*
to_sunxi_rsb_driver
(
struct
device_driver
*
d
)
...
...
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