Export extts_clean_up() function so that dpaa2-ptp driver is able to reuse it.
Unified · Split
| @@ -74,8 +74,7 @@ static void set_fipers(struct ptp_qoriq *ptp_qoriq) · 73 unmodified lines | |||
| 74 | ptp_qoriq->write(®s->fiper_regs->tmr_fiper2, ptp_qoriq->tmr_fiper2); | 74 | ptp_qoriq->write(®s->fiper_regs->tmr_fiper2, ptp_qoriq->tmr_fiper2); |
| 75 | } | 75 | } |
| 76 | 76 | ||
| 77 | static int extts_clean_up(struct ptp_qoriq *ptp_qoriq, int index, | 77 | int extts_clean_up(struct ptp_qoriq *ptp_qoriq, int index, bool update_event) |
| 78 | bool update_event) | ||
| 79 | { | 78 | { |
| 80 | struct ptp_qoriq_registers *regs = &ptp_qoriq->regs; | 79 | struct ptp_qoriq_registers *regs = &ptp_qoriq->regs; |
| 81 | struct ptp_clock_event event; | 80 | struct ptp_clock_event event; |
| @@ -121,6 +120,7 @@ static int extts_clean_up(struct ptp_qoriq *ptp_qoriq, int index, · 39 unmodified lines | |||
| 121 | 120 | ||
| 122 | return 0; | 121 | return 0; |
| 123 | } | 122 | } |
| 123 | EXPORT_SYMBOL_GPL(extts_clean_up); | ||
| 124 | 124 | ||
| 125 | /* | 125 | /* |
| 126 | * Interrupt service routine | 126 | * Interrupt service routine |
| @@ -192,6 +192,7 @@ int ptp_qoriq_settime(struct ptp_clock_info *ptp, · 191 unmodified lines | |||
| 192 | const struct timespec64 *ts); | 192 | const struct timespec64 *ts); |
| 193 | int ptp_qoriq_enable(struct ptp_clock_info *ptp, | 193 | int ptp_qoriq_enable(struct ptp_clock_info *ptp, |
| 194 | struct ptp_clock_request *rq, int on); | 194 | struct ptp_clock_request *rq, int on); |
| 195 | int extts_clean_up(struct ptp_qoriq *ptp_qoriq, int index, bool update_event); | ||
| 195 | #ifdef CONFIG_DEBUG_FS | 196 | #ifdef CONFIG_DEBUG_FS |
| 196 | void ptp_qoriq_create_debugfs(struct ptp_qoriq *ptp_qoriq); | 197 | void ptp_qoriq_create_debugfs(struct ptp_qoriq *ptp_qoriq); |
| 197 | void ptp_qoriq_remove_debugfs(struct ptp_qoriq *ptp_qoriq); | 198 | void ptp_qoriq_remove_debugfs(struct ptp_qoriq *ptp_qoriq); |