File tree Expand file tree Collapse file tree 1 file changed +7
-1
lines changed Expand file tree Collapse file tree 1 file changed +7
-1
lines changed Original file line number Diff line number Diff line change @@ -121,6 +121,9 @@ bool ptp_bc_clock_sync_enable(int clkid, int enable)
121
121
unsigned long flags ;
122
122
bool allow = false;
123
123
124
+ if (!ptp_bc_initialized )
125
+ return true;
126
+
124
127
if (clkid < 0 || clkid >= MAX_CLKS )
125
128
return false;
126
129
@@ -170,7 +173,7 @@ int ptp_bc_clock_register(int clocktype)
170
173
int id = -1 ;
171
174
172
175
if (!ptp_bc_initialized ) {
173
- pr_err ("ptp_bc error: NOT initialized.\n" );
176
+ pr_debug ("ptp_bc error: NOT initialized.\n" );
174
177
return -1 ;
175
178
}
176
179
@@ -204,6 +207,9 @@ EXPORT_SYMBOL_GPL(ptp_bc_clock_unregister);
204
207
void ptp_bc_mux_ctrl_register (void * ctx , spinlock_t * lock ,
205
208
ptp_bc_mux_ctrl_handle_t handler )
206
209
{
210
+ if (!ptp_bc_initialized )
211
+ return ;
212
+
207
213
if (ctx && lock && handler ) {
208
214
bc_mux_ctrl_handler = handler ;
209
215
bc_mux_ctrl_ctx = ctx ;
You can’t perform that action at this time.
0 commit comments