]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Remove unreferenced global function imx_gpt_get_timerfreq() and do some
authorIan Lepore <ian@FreeBSD.org>
Sun, 19 Mar 2017 04:03:39 +0000 (04:03 +0000)
committerIan Lepore <ian@FreeBSD.org>
Sun, 19 Mar 2017 04:03:39 +0000 (04:03 +0000)
commit3d9df276014f3f3bfdc2832b40975d4a2ec6a63e
tree45663897f67121558e870046f5b3708183ecd15c
parent08ef4ddb0fa8ee531b6b213a3d041ab7fe89cda7
Remove unreferenced global function imx_gpt_get_timerfreq() and do some
cleanups enabled by that:

 - The only thing left in imx_gptvar.h was the softc, which IMO never
   should have been in there at all.  Move it into the driver, and
   delete the header file.

 - Remove several unneeded #includes from the driver.

 - Change imx_gpt_softc from global to static (it's used by DELAY()), and
   don't redundantly static-initialize it to NULL.
sys/arm/freescale/imx/imx_gpt.c
sys/arm/freescale/imx/imx_gptvar.h [deleted file]