From nobody Thu May 05 23:42:32 2022 X-Original-To: dev-commits-src-all@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id C7C6A1AC1D3F; Thu, 5 May 2022 23:42:33 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4KvVc91PPxz4Y0T; Thu, 5 May 2022 23:42:32 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1651794153; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=J4bNHk2zc+zbVQbuQq9AqMcPohznzF9FOtBRDqVxZtI=; b=SrDpBbeIA06SyDaxOcgsU6/QBYth3zKIUo++1K7lUH7+KvI+sRFMGQPclBHitJEdb1R69c 7HmXhVI1wqNV0gJDYoRynQC8PVI0As8qkMvOUVNu325WE+WuiaAyjwsn3O8JNHW1PProEq ErGLjI135luYHzLgEvj48/83SLbE4W9zMjdCEccuHxw3dI2KOMo+sEzOteg8yDr+vhvgmg iiduBjh51tp7yPe//PKL9xmeYvajckp1ZVtHEQ74uuUW4cImfZK3xUcBrtpfRS3J3CC4vY 6CqML8+jPv7wW3OgQLUdPxkeUSoYEt09MX3bS1bVETqSUhl42YIPlA4K2FLAzg== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 7492011497; Thu, 5 May 2022 23:42:32 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.16.1/8.16.1) with ESMTP id 245NgWt6055756; Thu, 5 May 2022 23:42:32 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 245NgWcb055755; Thu, 5 May 2022 23:42:32 GMT (envelope-from git) Date: Thu, 5 May 2022 23:42:32 GMT Message-Id: <202205052342.245NgWcb055755@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: John Baldwin Subject: git: d4fa375a0e4f - main - am335x_pwm_config_ecap: Use devclass_find to lookup devclass. List-Id: Commit messages for all branches of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-src-all@freebsd.org X-BeenThere: dev-commits-src-all@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: jhb X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: d4fa375a0e4fc5f8ad0cfa67ae667ba715a0d13a Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1651794153; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=J4bNHk2zc+zbVQbuQq9AqMcPohznzF9FOtBRDqVxZtI=; b=U+XyBqXS0dF1iSlIrPFo64pwfwXoiWIE3Kd7RUdp0JbAAcAxdyndns3joGr7YFkRBquqA5 FL9kiPLsdy5k+n1yHcmCuea5gkhehpZd3AM1lcaRv+5W/whei0LBW5xG9DvxZ2hq0JbNMm iGmfsj4r+450V6vquBB7v+eaj+RBZzsbfDs0+MQb0NTCGqHPIIfummgpWmdBGqZdGZljLi 8inIKgZ1rkbBCwhXjQ9UhSIzoo+2N2cmEFD4e98VqMxrxFMOZ5NcFpXEk3WndeveDaQ7mD wrimJpr9QfxhmH20J9T7U64mGZGnQu0vq0rC9/TgVm9Q9l8gEFkWz1Z4NgYo5A== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1651794153; a=rsa-sha256; cv=none; b=N6uzzq2pULcxaAJS7JI9ukZGcuKl5EnO7ojI5O085DTzYODvw9iU+ut0qMNksJUZwDdCoo W+J0eHfnIxbQUB0shWqPz8cRLEf4z7gLnZoFlRZqV39/DvWbeb75oABkLEH8tBEka1TmdF q0/1sKeCIpAyRFcLCDYSxfg43oYsm1ud85uAbV8T+epVF5bLaSBkIqQftkadT2mhmcDt3e Sc5JpYeXpbpm74TkgVL0OCZDiLvS3hVDpexgMlyzLsr/O8FVTRco7HAoLeni4UzckBYbCP p4XXDV2JgC07904pr+LILtdJc7iNlPX8xSh/aVGYQHX9cZkb52plP3wCIBJ+Sg== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by jhb: URL: https://cgit.FreeBSD.org/src/commit/?id=d4fa375a0e4fc5f8ad0cfa67ae667ba715a0d13a commit d4fa375a0e4fc5f8ad0cfa67ae667ba715a0d13a Author: John Baldwin AuthorDate: 2022-05-05 23:40:43 +0000 Commit: John Baldwin CommitDate: 2022-05-05 23:40:43 +0000 am335x_pwm_config_ecap: Use devclass_find to lookup devclass. Differential Revision: https://reviews.freebsd.org/D35082 --- sys/arm/ti/am335x/am335x_ecap.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sys/arm/ti/am335x/am335x_ecap.c b/sys/arm/ti/am335x/am335x_ecap.c index 31e340a69c33..17bddb5c1a8f 100644 --- a/sys/arm/ti/am335x/am335x_ecap.c +++ b/sys/arm/ti/am335x/am335x_ecap.c @@ -107,7 +107,7 @@ am335x_pwm_config_ecap(int unit, int period, int duty) struct am335x_ecap_softc *sc; uint16_t reg; - dev = devclass_get_device(am335x_ecap_devclass, unit); + dev = devclass_get_device(devclass_find(am335x_ecap_driver.name), unit); if (dev == NULL) return (ENXIO);