Date: Tue, 26 Feb 2019 22:52:41 +0000 (UTC) From: Ian Lepore <ian@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r344612 - head/sys/dev/flash Message-ID: <201902262252.x1QMqf8I023622@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: ian Date: Tue Feb 26 22:52:41 2019 New Revision: 344612 URL: https://svnweb.freebsd.org/changeset/base/344612 Log: Add a module dependency on fdt_slicer. Also, move the PNP_INFO to its more usual location, down near the DRIVER_MODULE() stuff. Modified: head/sys/dev/flash/at45d.c Modified: head/sys/dev/flash/at45d.c ============================================================================== --- head/sys/dev/flash/at45d.c Tue Feb 26 22:52:08 2019 (r344611) +++ head/sys/dev/flash/at45d.c Tue Feb 26 22:52:41 2019 (r344612) @@ -60,7 +60,6 @@ static struct ofw_compat_data compat_data[] = { { "atmel,dataflash", 1 }, { NULL, 0 }, }; -SPIBUS_PNP_INFO(compat_data); #endif /* This is the information returned by the MANUFACTURER_ID command. */ @@ -556,3 +555,8 @@ static driver_t at45d_driver = { DRIVER_MODULE(at45d, spibus, at45d_driver, at45d_devclass, NULL, NULL); MODULE_DEPEND(at45d, spibus, 1, 1, 1); +#ifdef FDT +MODULE_DEPEND(at45d, fdt_slicer, 1, 1, 1); +SPIBUS_PNP_INFO(compat_data); +#endif +
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201902262252.x1QMqf8I023622>