Skip to content

Commit

Permalink
bus: ti-sysc: Make functions static
Browse files Browse the repository at this point in the history
We can make sysc_write() and sysc_child_pm_domain static as noted by
sparse.

Signed-off-by: Tony Lindgren <tony@atomide.com>
  • Loading branch information
Tony Lindgren committed Apr 1, 2019
1 parent 386cb76 commit b7182b4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions drivers/bus/ti-sysc.c
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ struct sysc {
static void sysc_parse_dts_quirks(struct sysc *ddata, struct device_node *np,
bool is_child);

void sysc_write(struct sysc *ddata, int offset, u32 value)
static void sysc_write(struct sysc *ddata, int offset, u32 value)
{
writel_relaxed(value, ddata->module_va + offset);
}
Expand Down Expand Up @@ -1209,7 +1209,7 @@ static int sysc_child_resume_noirq(struct device *dev)
}
#endif

struct dev_pm_domain sysc_child_pm_domain = {
static struct dev_pm_domain sysc_child_pm_domain = {
.ops = {
SET_RUNTIME_PM_OPS(sysc_child_runtime_suspend,
sysc_child_runtime_resume,
Expand Down

0 comments on commit b7182b4

Please sign in to comment.