The invention relates to an agricultural machine comprising a frame (2) which is arranged to be connected to a pulling vehicle, two or more processing members (5), which are rotatably attached to the frame (2), and a driving device for driving the processing members (5) in a rotating manner, wherein the driving device comprises a main drive shaft (10), two drive shafts (14a, 14b) which are each arranged to drive one or more of the two or more processing members (5), and two drive couplings (12), wherein each of the two drive couplings connects the main drive shaft (10) to one of the two drive shafts (14a, 14b). The invention is characterized in that at least one of the drive couplings comprises at least one torsion element (17) which is arranged to allow a certain angular rotation between the drive shafts 14a, 14b.