Skip to content

Commit 097948a

Browse files
rbmarlieretmlind
authored andcommitted
bus: ti-sysc: constify the struct device_type usage
Since commit aed65af ("drivers: make device_type const"), the driver core can properly handle constant struct device_type. Move the sysc_device_type variable to be a constant structure as well, placing it into read-only memory which can not be modified at runtime. Cc: Greg Kroah-Hartman <[email protected]> Signed-off-by: Ricardo B. Marliere <[email protected]> Message-ID: <[email protected]> Signed-off-by: Tony Lindgren <[email protected]>
1 parent 6613476 commit 097948a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/bus/ti-sysc.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2400,7 +2400,7 @@ static int sysc_child_add_clocks(struct sysc *ddata,
24002400
return 0;
24012401
}
24022402

2403-
static struct device_type sysc_device_type = {
2403+
static const struct device_type sysc_device_type = {
24042404
};
24052405

24062406
static struct sysc *sysc_child_to_parent(struct device *dev)

0 commit comments

Comments
 (0)