@@ -4562,7 +4562,7 @@ static int ptp_ocp_dpll_direction_set(const struct dpll_pin *pin,
45624562 return - EOPNOTSUPP ;
45634563 mode = direction == DPLL_PIN_DIRECTION_INPUT ?
45644564 SMA_MODE_IN : SMA_MODE_OUT ;
4565- return ptp_ocp_sma_store_val (bp , 0 , mode , sma_nr );
4565+ return ptp_ocp_sma_store_val (bp , 0 , mode , sma_nr + 1 );
45664566}
45674567
45684568static int ptp_ocp_dpll_frequency_set (const struct dpll_pin * pin ,
@@ -4583,7 +4583,7 @@ static int ptp_ocp_dpll_frequency_set(const struct dpll_pin *pin,
45834583 tbl = bp -> sma_op -> tbl [sma -> mode ];
45844584 for (i = 0 ; tbl [i ].name ; i ++ )
45854585 if (tbl [i ].frequency == frequency )
4586- return ptp_ocp_sma_store_val (bp , i , sma -> mode , sma_nr );
4586+ return ptp_ocp_sma_store_val (bp , i , sma -> mode , sma_nr + 1 );
45874587 return - EINVAL ;
45884588}
45894589
@@ -4600,7 +4600,7 @@ static int ptp_ocp_dpll_frequency_get(const struct dpll_pin *pin,
46004600 u32 val ;
46014601 int i ;
46024602
4603- val = bp -> sma_op -> get (bp , sma_nr );
4603+ val = bp -> sma_op -> get (bp , sma_nr + 1 );
46044604 tbl = bp -> sma_op -> tbl [sma -> mode ];
46054605 for (i = 0 ; tbl [i ].name ; i ++ )
46064606 if (val == tbl [i ].value ) {
0 commit comments