svn commit: r349075 - head/sys/dev/pwm
Ian Lepore
ian at FreeBSD.org
Sat Jun 15 20:13:43 UTC 2019
Author: ian
Date: Sat Jun 15 20:13:42 2019
New Revision: 349075
URL: https://svnweb.freebsd.org/changeset/base/349075
Log:
Remove pwmbus_attach_bus(), it no longer has any callers. Also remove a
couple prototypes for functions that never existed (and never will).
Modified:
head/sys/dev/pwm/pwmbus.c
head/sys/dev/pwm/pwmbus.h
Modified: head/sys/dev/pwm/pwmbus.c
==============================================================================
--- head/sys/dev/pwm/pwmbus.c Sat Jun 15 19:46:59 2019 (r349074)
+++ head/sys/dev/pwm/pwmbus.c Sat Jun 15 20:13:42 2019 (r349075)
@@ -61,35 +61,6 @@ struct pwmbus_softc {
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
pwmbus_probe(device_t dev)
{
Modified: head/sys/dev/pwm/pwmbus.h
==============================================================================
--- head/sys/dev/pwm/pwmbus.h Sat Jun 15 19:46:59 2019 (r349074)
+++ head/sys/dev/pwm/pwmbus.h Sat Jun 15 20:13:42 2019 (r349075)
@@ -43,10 +43,6 @@ struct pwm_channel {
};
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
pwm_get_by_ofw_propidx(device_t consumer, phandle_t node,
const char *prop_name, int idx, pwm_channel_t *channel);
More information about the svn-src-head
mailing list