Changeset View
Changeset View
Standalone View
Standalone View
sys/arm/ti/twl/twl_clks.c
Show All 12 Lines | |||||
new->sub_dev = nsub; | new->sub_dev = nsub; | ||||
new->reg_off = regbase; | new->reg_off = regbase; | ||||
/* Add a sysctl entry for the clock */ | /* Add a sysctl entry for the clock */ | ||||
new->oid = SYSCTL_ADD_PROC(ctx, SYSCTL_CHILDREN(tree), OID_AUTO, name, | new->oid = SYSCTL_ADD_PROC(ctx, SYSCTL_CHILDREN(tree), OID_AUTO, name, | ||||
CTLTYPE_INT | CTLFLAG_RD, sc, 0, | CTLTYPE_INT | CTLFLAG_RD | CTLFLAG_NEEDGIANT, sc, 0, | ||||
twl_clks_sysctl_clock, "I", "external clock"); | twl_clks_sysctl_clock, "I", "external clock"); | ||||
/* Finally add the regulator to list of supported regulators */ | /* Finally add the regulator to list of supported regulators */ | ||||
LIST_INSERT_HEAD(&sc->sc_clks_list, new, link); | LIST_INSERT_HEAD(&sc->sc_clks_list, new, link); | ||||
return (new); | return (new); | ||||
} | } | ||||
Show All 12 Lines |