Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 23 Oct 2019 09:54:50 +0000 (UTC)
From:      Emmanuel Vadot <manu@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r353918 - head/sys/arm/allwinner
Message-ID:  <201910230954.x9N9sot0087808@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: manu
Date: Wed Oct 23 09:54:50 2019
New Revision: 353918
URL: https://svnweb.freebsd.org/changeset/base/353918

Log:
  axp81x: Use the default regnode_init method
  
  MFC after:	1 week

Modified:
  head/sys/arm/allwinner/axp81x.c

Modified: head/sys/arm/allwinner/axp81x.c
==============================================================================
--- head/sys/arm/allwinner/axp81x.c	Wed Oct 23 09:54:12 2019	(r353917)
+++ head/sys/arm/allwinner/axp81x.c	Wed Oct 23 09:54:50 2019	(r353918)
@@ -747,12 +747,6 @@ axp8xx_write(device_t dev, uint8_t reg, uint8_t val)
 }
 
 static int
-axp8xx_regnode_init(struct regnode *regnode)
-{
-	return (0);
-}
-
-static int
 axp8xx_regnode_enable(struct regnode *regnode, bool enable, int *udelay)
 {
 	struct axp8xx_reg_sc *sc;
@@ -869,7 +863,6 @@ axp8xx_regnode_get_voltage(struct regnode *regnode, in
 
 static regnode_method_t axp8xx_regnode_methods[] = {
 	/* Regulator interface */
-	REGNODEMETHOD(regnode_init,		axp8xx_regnode_init),
 	REGNODEMETHOD(regnode_enable,		axp8xx_regnode_enable),
 	REGNODEMETHOD(regnode_set_voltage,	axp8xx_regnode_set_voltage),
 	REGNODEMETHOD(regnode_get_voltage,	axp8xx_regnode_get_voltage),



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201910230954.x9N9sot0087808>