Commit 9429439f authored by Yangbo Lu's avatar Yangbo Lu Committed by David S. Miller

ptp_qoriq: export extts_clean_up() function

Export extts_clean_up() function so that dpaa2-ptp
driver is able to reuse it.
Signed-off-by: default avatarYangbo Lu <yangbo.lu@nxp.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 10bc877c
...@@ -74,8 +74,7 @@ static void set_fipers(struct ptp_qoriq *ptp_qoriq) ...@@ -74,8 +74,7 @@ static void set_fipers(struct ptp_qoriq *ptp_qoriq)
ptp_qoriq->write(&regs->fiper_regs->tmr_fiper2, ptp_qoriq->tmr_fiper2); ptp_qoriq->write(&regs->fiper_regs->tmr_fiper2, ptp_qoriq->tmr_fiper2);
} }
static int extts_clean_up(struct ptp_qoriq *ptp_qoriq, int index, int extts_clean_up(struct ptp_qoriq *ptp_qoriq, int index, bool update_event)
bool update_event)
{ {
struct ptp_qoriq_registers *regs = &ptp_qoriq->regs; struct ptp_qoriq_registers *regs = &ptp_qoriq->regs;
struct ptp_clock_event event; struct ptp_clock_event event;
...@@ -121,6 +120,7 @@ static int extts_clean_up(struct ptp_qoriq *ptp_qoriq, int index, ...@@ -121,6 +120,7 @@ static int extts_clean_up(struct ptp_qoriq *ptp_qoriq, int index,
return 0; return 0;
} }
EXPORT_SYMBOL_GPL(extts_clean_up);
/* /*
* Interrupt service routine * Interrupt service routine
......
...@@ -192,6 +192,7 @@ int ptp_qoriq_settime(struct ptp_clock_info *ptp, ...@@ -192,6 +192,7 @@ int ptp_qoriq_settime(struct ptp_clock_info *ptp,
const struct timespec64 *ts); const struct timespec64 *ts);
int ptp_qoriq_enable(struct ptp_clock_info *ptp, int ptp_qoriq_enable(struct ptp_clock_info *ptp,
struct ptp_clock_request *rq, int on); struct ptp_clock_request *rq, int on);
int extts_clean_up(struct ptp_qoriq *ptp_qoriq, int index, bool update_event);
#ifdef CONFIG_DEBUG_FS #ifdef CONFIG_DEBUG_FS
void ptp_qoriq_create_debugfs(struct ptp_qoriq *ptp_qoriq); void ptp_qoriq_create_debugfs(struct ptp_qoriq *ptp_qoriq);
void ptp_qoriq_remove_debugfs(struct ptp_qoriq *ptp_qoriq); void ptp_qoriq_remove_debugfs(struct ptp_qoriq *ptp_qoriq);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment