Remove pwmbus_attach_bus(), it no longer has any callers. Also remove a

couple prototypes for functions that never existed (and never will).
This commit is contained in:
Ian Lepore 2019-06-15 20:13:42 +00:00
parent 71fb373934
commit 3cee44bc88
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=349075
2 changed files with 0 additions and 33 deletions

View File

@ -61,35 +61,6 @@ struct pwmbus_softc {
int nchannels; int nchannels;
}; };
device_t
pwmbus_attach_bus(device_t dev)
{
device_t busdev;
#ifdef FDT
phandle_t node;
#endif
busdev = device_add_child(dev, "pwmbus", -1);
if (busdev == NULL) {
device_printf(dev, "Cannot add child pwmbus\n");
return (NULL);
}
if (device_add_child(dev, "pwmc", -1) == NULL) {
device_printf(dev, "Cannot add pwmc\n");
device_delete_child(dev, busdev);
return (NULL);
}
#ifdef FDT
node = ofw_bus_get_node(dev);
OF_device_register_xref(OF_xref_from_node(node), dev);
#endif
bus_generic_attach(dev);
return (busdev);
}
static int static int
pwmbus_probe(device_t dev) pwmbus_probe(device_t dev)
{ {

View File

@ -43,10 +43,6 @@ struct pwm_channel {
}; };
typedef struct pwm_channel *pwm_channel_t; typedef struct pwm_channel *pwm_channel_t;
device_t pwmbus_attach_bus(device_t dev);
int pwmbus_acquire_channel(device_t bus, int channel);
int pwmbus_release_channel(device_t bus, int channel);
int int
pwm_get_by_ofw_propidx(device_t consumer, phandle_t node, pwm_get_by_ofw_propidx(device_t consumer, phandle_t node,
const char *prop_name, int idx, pwm_channel_t *channel); const char *prop_name, int idx, pwm_channel_t *channel);