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 | 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, | |
| 78 | − bool update_event) | |
| 77 | +int extts_clean_up(struct ptp_qoriq *ptp_qoriq, int index, bool update_event) | |
| 79 | 78 | { |
| 80 | 79 | struct ptp_qoriq_registers *regs = &ptp_qoriq->regs; |
| 81 | 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 | 121 | return 0; |
| 123 | 122 | } |
| 123 | +EXPORT_SYMBOL_GPL(extts_clean_up); | |
| 124 | 124 | |
| 125 | 125 | /* |
| 126 | 126 | * Interrupt service routine |
| @@ -192,6 +192,7 @@ int ptp_qoriq_settime(struct ptp_clock_info *ptp, · 191 unmodified lines | ||
| 192 | 192 | const struct timespec64 *ts); |
| 193 | 193 | int ptp_qoriq_enable(struct ptp_clock_info *ptp, |
| 194 | 194 | struct ptp_clock_request *rq, int on); |
| 195 | +int extts_clean_up(struct ptp_qoriq *ptp_qoriq, int index, bool update_event); | |
| 195 | 196 | #ifdef CONFIG_DEBUG_FS |
| 196 | 197 | void ptp_qoriq_create_debugfs(struct ptp_qoriq *ptp_qoriq); |
| 197 | 198 | void ptp_qoriq_remove_debugfs(struct ptp_qoriq *ptp_qoriq); |