@@ -1300,18 +1300,6 @@ static enum drm_mode_status ast_mode_valid(struct drm_connector *connector,
1300
1300
return flags ;
1301
1301
}
1302
1302
1303
- static enum drm_connector_status ast_connector_detect (struct drm_connector
1304
- * connector , bool force )
1305
- {
1306
- int r ;
1307
-
1308
- r = ast_get_modes (connector );
1309
- if (r <= 0 )
1310
- return connector_status_disconnected ;
1311
-
1312
- return connector_status_connected ;
1313
- }
1314
-
1315
1303
static void ast_connector_destroy (struct drm_connector * connector )
1316
1304
{
1317
1305
struct ast_connector * ast_connector = to_ast_connector (connector );
@@ -1327,7 +1315,6 @@ static const struct drm_connector_helper_funcs ast_connector_helper_funcs = {
1327
1315
1328
1316
static const struct drm_connector_funcs ast_connector_funcs = {
1329
1317
.reset = drm_atomic_helper_connector_reset ,
1330
- .detect = ast_connector_detect ,
1331
1318
.fill_modes = drm_helper_probe_single_connector_modes ,
1332
1319
.destroy = ast_connector_destroy ,
1333
1320
.atomic_duplicate_state = drm_atomic_helper_connector_duplicate_state ,
@@ -1355,8 +1342,7 @@ static int ast_connector_init(struct drm_device *dev)
1355
1342
connector -> interlace_allowed = 0 ;
1356
1343
connector -> doublescan_allowed = 0 ;
1357
1344
1358
- connector -> polled = DRM_CONNECTOR_POLL_CONNECT |
1359
- DRM_CONNECTOR_POLL_DISCONNECT ;
1345
+ connector -> polled = DRM_CONNECTOR_POLL_CONNECT ;
1360
1346
1361
1347
drm_connector_attach_encoder (connector , encoder );
1362
1348
@@ -1425,8 +1411,6 @@ int ast_mode_config_init(struct ast_private *ast)
1425
1411
1426
1412
drm_mode_config_reset (dev );
1427
1413
1428
- drm_kms_helper_poll_init (dev );
1429
-
1430
1414
return 0 ;
1431
1415
}
1432
1416
0 commit comments