@@ -629,7 +629,7 @@ static struct dpp *dcn201_dpp_create(
629629 uint32_t inst )
630630{
631631 struct dcn201_dpp * dpp =
632- kzalloc (sizeof (struct dcn201_dpp ), GFP_ATOMIC );
632+ kzalloc (sizeof (struct dcn201_dpp ), GFP_KERNEL );
633633
634634 if (!dpp )
635635 return NULL ;
@@ -646,7 +646,7 @@ static struct input_pixel_processor *dcn201_ipp_create(
646646 struct dc_context * ctx , uint32_t inst )
647647{
648648 struct dcn10_ipp * ipp =
649- kzalloc (sizeof (struct dcn10_ipp ), GFP_ATOMIC );
649+ kzalloc (sizeof (struct dcn10_ipp ), GFP_KERNEL );
650650
651651 if (!ipp ) {
652652 return NULL ;
@@ -662,7 +662,7 @@ static struct output_pixel_processor *dcn201_opp_create(
662662 struct dc_context * ctx , uint32_t inst )
663663{
664664 struct dcn201_opp * opp =
665- kzalloc (sizeof (struct dcn201_opp ), GFP_ATOMIC );
665+ kzalloc (sizeof (struct dcn201_opp ), GFP_KERNEL );
666666
667667 if (!opp ) {
668668 return NULL ;
@@ -677,7 +677,7 @@ static struct dce_aux *dcn201_aux_engine_create(struct dc_context *ctx,
677677 uint32_t inst )
678678{
679679 struct aux_engine_dce110 * aux_engine =
680- kzalloc (sizeof (struct aux_engine_dce110 ), GFP_ATOMIC );
680+ kzalloc (sizeof (struct aux_engine_dce110 ), GFP_KERNEL );
681681
682682 if (!aux_engine )
683683 return NULL ;
@@ -710,7 +710,7 @@ static struct dce_i2c_hw *dcn201_i2c_hw_create(struct dc_context *ctx,
710710 uint32_t inst )
711711{
712712 struct dce_i2c_hw * dce_i2c_hw =
713- kzalloc (sizeof (struct dce_i2c_hw ), GFP_ATOMIC );
713+ kzalloc (sizeof (struct dce_i2c_hw ), GFP_KERNEL );
714714
715715 if (!dce_i2c_hw )
716716 return NULL ;
@@ -723,8 +723,7 @@ static struct dce_i2c_hw *dcn201_i2c_hw_create(struct dc_context *ctx,
723723
724724static struct mpc * dcn201_mpc_create (struct dc_context * ctx , uint32_t num_mpcc )
725725{
726- struct dcn201_mpc * mpc201 = kzalloc (sizeof (struct dcn201_mpc ),
727- GFP_ATOMIC );
726+ struct dcn201_mpc * mpc201 = kzalloc (sizeof (struct dcn201_mpc ), GFP_KERNEL );
728727
729728 if (!mpc201 )
730729 return NULL ;
@@ -740,8 +739,7 @@ static struct mpc *dcn201_mpc_create(struct dc_context *ctx, uint32_t num_mpcc)
740739
741740static struct hubbub * dcn201_hubbub_create (struct dc_context * ctx )
742741{
743- struct dcn20_hubbub * hubbub = kzalloc (sizeof (struct dcn20_hubbub ),
744- GFP_ATOMIC );
742+ struct dcn20_hubbub * hubbub = kzalloc (sizeof (struct dcn20_hubbub ), GFP_KERNEL );
745743
746744 if (!hubbub )
747745 return NULL ;
@@ -759,7 +757,7 @@ static struct timing_generator *dcn201_timing_generator_create(
759757 uint32_t instance )
760758{
761759 struct optc * tgn10 =
762- kzalloc (sizeof (struct optc ), GFP_ATOMIC );
760+ kzalloc (sizeof (struct optc ), GFP_KERNEL );
763761
764762 if (!tgn10 )
765763 return NULL ;
@@ -793,7 +791,7 @@ static struct link_encoder *dcn201_link_encoder_create(
793791 const struct encoder_init_data * enc_init_data )
794792{
795793 struct dcn20_link_encoder * enc20 =
796- kzalloc (sizeof (struct dcn20_link_encoder ), GFP_ATOMIC );
794+ kzalloc (sizeof (struct dcn20_link_encoder ), GFP_KERNEL );
797795 struct dcn10_link_encoder * enc10 ;
798796
799797 if (!enc20 || enc_init_data -> hpd_source >= ARRAY_SIZE (link_enc_hpd_regs ))
@@ -821,7 +819,7 @@ static struct clock_source *dcn201_clock_source_create(
821819 bool dp_clk_src )
822820{
823821 struct dce110_clk_src * clk_src =
824- kzalloc (sizeof (struct dce110_clk_src ), GFP_ATOMIC );
822+ kzalloc (sizeof (struct dce110_clk_src ), GFP_KERNEL );
825823
826824 if (!clk_src )
827825 return NULL ;
@@ -856,7 +854,7 @@ static struct stream_encoder *dcn201_stream_encoder_create(
856854 struct dc_context * ctx )
857855{
858856 struct dcn10_stream_encoder * enc1 =
859- kzalloc (sizeof (struct dcn10_stream_encoder ), GFP_ATOMIC );
857+ kzalloc (sizeof (struct dcn10_stream_encoder ), GFP_KERNEL );
860858
861859 if (!enc1 )
862860 return NULL ;
@@ -883,7 +881,7 @@ static const struct dce_hwseq_mask hwseq_mask = {
883881static struct dce_hwseq * dcn201_hwseq_create (
884882 struct dc_context * ctx )
885883{
886- struct dce_hwseq * hws = kzalloc (sizeof (struct dce_hwseq ), GFP_ATOMIC );
884+ struct dce_hwseq * hws = kzalloc (sizeof (struct dce_hwseq ), GFP_KERNEL );
887885
888886 if (hws ) {
889887 hws -> ctx = ctx ;
@@ -983,7 +981,7 @@ static struct hubp *dcn201_hubp_create(
983981 uint32_t inst )
984982{
985983 struct dcn201_hubp * hubp201 =
986- kzalloc (sizeof (struct dcn201_hubp ), GFP_ATOMIC );
984+ kzalloc (sizeof (struct dcn201_hubp ), GFP_KERNEL );
987985
988986 if (!hubp201 )
989987 return NULL ;
@@ -1303,7 +1301,7 @@ struct resource_pool *dcn201_create_resource_pool(
13031301 struct dc * dc )
13041302{
13051303 struct dcn201_resource_pool * pool =
1306- kzalloc (sizeof (struct dcn201_resource_pool ), GFP_ATOMIC );
1304+ kzalloc (sizeof (struct dcn201_resource_pool ), GFP_KERNEL );
13071305
13081306 if (!pool )
13091307 return NULL ;
0 commit comments