Page MenuHomeFreeBSD

D5702.diff
No OneTemporary

D5702.diff

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

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)

Event Timeline