Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F106047326
D5702.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
1 KB
Referenced Files
None
Subscribers
None
D5702.diff
View Options
Index: head/sys/dev/extres/clk/clk.h
===================================================================
--- head/sys/dev/extres/clk/clk.h
+++ head/sys/dev/extres/clk/clk.h
@@ -132,7 +132,7 @@
int clk_get_by_ofw_index(device_t dev, int idx, clk_t *clk);
int clk_get_by_ofw_name(device_t dev, const char *name, clk_t *clk);
int clk_parse_ofw_out_names(device_t dev, phandle_t node,
- const char ***out_names, uint32_t *indices);
+ const char ***out_names, uint32_t **indices);
int clk_parse_ofw_clk_name(device_t dev, phandle_t node, const char **name);
#endif
Index: head/sys/dev/extres/clk/clk.c
===================================================================
--- head/sys/dev/extres/clk/clk.c
+++ head/sys/dev/extres/clk/clk.c
@@ -1272,12 +1272,12 @@
*/
int
clk_parse_ofw_out_names(device_t dev, phandle_t node, const char ***out_names,
- uint32_t *indices)
+ uint32_t **indices)
{
int name_items, rv;
*out_names = NULL;
- indices = NULL;
+ *indices = NULL;
if (!OF_hasprop(node, "clock-output-names"))
return (0);
rv = ofw_bus_string_list_to_array(node, "clock-output-names",
@@ -1294,7 +1294,7 @@
device_printf(dev, " Size of 'clock-output-names' and "
"'clock-indices' differs\n");
free(*out_names, M_OFWPROP);
- free(indices, M_OFWPROP);
+ free(*indices, M_OFWPROP);
return (0);
}
return (name_items);
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Wed, Dec 25, 11:22 AM (10 h, 41 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
15596478
Default Alt Text
D5702.diff (1 KB)
Attached To
Mode
D5702: clk: Fix "clk_parse_ofw_out_names" indices parameter
Attached
Detach File
Event Timeline
Log In to Comment